承接 hayk-mxitaryan/auto-service 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hayk-mxitaryan/auto-service

Composer 安装命令:

composer require hayk-mxitaryan/auto-service

包简介

A simple package to simplify laravel programming for those who use service classes to take the logic out of the controller

README 文档

README

Installation:

composer require hayk-mxitaryan/auto-service

How to use package:

If you want to create service class and base controller with controller just add --s to your command

php artisan make:controller ExampleController --s

And package will create service class in App\Services folder and Base Controller in your controller folder

You can also create them separately using built in commands

Creating service class

php artisan make:service-class Directory\ExampleService

Creating base controller

!! Base Controller Command need only directory where you want create base controller !!

php artisan make:base-controller Directory

You can automatically connect all the services you want using the command

You have to put at the end --s= service dir and service name

php artisan make:base-controller dir --s=ExampleDir\ExampleService

You can specify multiple services by separating them with - sybmol

php artisan make:base-controller dir --s=ExampleDir\ExampleService-ExampleDir2\ExampleService2

If your service is in the main folder App\Services you can just specify the name of the service

php artisan make:base-controller dir --s=ExampleService

Thank you for your attention. Use the package to make your work with laravel easier

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-21