ahmobin/laravel-service-kit
最新稳定版本:v0.0.1
Composer 安装命令:
composer require ahmobin/laravel-service-kit
包简介
Laravel Service Kit is a PHP library that creates services, interfaces and repository class files.
README 文档
README
This package provides a set of commands to quickly generate service, interface, and repository classes in your Laravel application.
Installation
Install the package via Composer:
composer require --dev ahmobin/laravel-service-kit
Register Service Provider:
'providers' => [ // Other Service Providers \Mobin\LaravelServiceKit\LaravelServiceKitServiceProvider::class, ],
Usages:
Creating a Service Class
To create a service class, run the following command:
php artisan make:service YourClassNameService
Creating an Interface Class
To create an interface class, run the following command:
php artisan make:interface YourClassNameInterface
Creating a Repository Class
To create a repository class, run the following command:
php artisan make:repo YourClassNameRepository
Further you may bind the repository class with interface in your AppServiceProvider
Feel free to customize the class names as per your application's naming conventions.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-10