定制 lokat/lb-domain-maker 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

lokat/lb-domain-maker

最新稳定版本:v1.0.4

Composer 安装命令:

composer require lokat/lb-domain-maker

包简介

Create domain model/controller/migration for laravel-boilerplate by rappasoft

README 文档

README

Creates a model, migration, controller in provided domain

Requires

Install

composer require lokat/lb-domain-maker

Run

In your Laravel project root folder:

php artisan domain:make Example

The command will create a model with Example name in app/Domains/Example/Models folder.

Options

You can create the domain and run the migration by running the command with the --migrate option:

php artisan domain:make Example --migration

or

php artisan domain:make Example -m

You may also specify the name of the model by running the command with the --model option:

php artisan domain:make Example --model=ModelName

or

php artisan domain:make Example -M ModelName

If you want to create a controller, run the command with --controller option:

php artisan domain:make Example --controller

or

php artisan domain:make Example -c

The controller will be created on app/Domains/Example/Http/Controllers/Backend/ExampleController

You may also create the controller for frontend by running the command with --frontend option:

php artisan domain:make Example --controller --frontend

or

php artisan domain:make Example -c -f

You may also create the controller with resource by running the command with --resource option:

php artisan domain:make Example --resource

or

php artisan domain:make Example -r

You may want to create the controller without the model by running the command with --no-model option:

php artisan domain:make Example --controller --no-model 

or 

php artisan domain:make Example -cN

Add service

php artisan domain:make Example --service 

or 

php artisan domain:make Example -s

It will create service at

app/Domains/Example/Services/ExampleService.php 

Add observer

php artisan domain:make Example --observer 

or 

php artisan domain:make Example -o

It will create observer at

app/Domains/Example/Observers/ExampleObserver.php 

Add model resource

php artisan domain:make Example --model-resource 

or 

php artisan domain:make Example -R

It will create model resource at

app/Domains/Example/Resources/ExampleResource.php 

Add request

php artisan domain:make Example --request 

or 

php artisan domain:make Example -t

It will create 2 form requests at

app/Domains/Example/Requests/ExampleStoreRequest.php 
app/Domains/Example/Requests/ExampleUpdateRequest.php 

Add livewire datatable

php artisan domain:make Example --datatable 

or 

php artisan domain:make Example -d

It will create 2 livewire datatables at

app/Domains/Example/Livewire/Frontend/ExamplesTable.php 
app/Domains/Example/Livewire/Backend/ExamplesTable.php 

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-01