hayk-mxitaryan/auto-service 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固