Download the PHP package shibuyakosuke/laravel-crud-command without Composer
On this page you can find all versions of the php package shibuyakosuke/laravel-crud-command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download shibuyakosuke/laravel-crud-command
More information about shibuyakosuke/laravel-crud-command
Files in shibuyakosuke/laravel-crud-command
Download shibuyakosuke/laravel-crud-command
More information about shibuyakosuke/laravel-crud-command
Files in shibuyakosuke/laravel-crud-command
Vendor shibuyakosuke
Package laravel-crud-command
Short Description Generate CRUD files for laravel.
License MIT
Package laravel-crud-command
Short Description Generate CRUD files for laravel.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-crud-command
laravel-crud-command
日本語
Get the schema from the pre-created database and use the artisan command to batch output the files needed for CRUD.
Feature
- Generate a file for translation from MySQL table comment and column comment.
- resourcees/lang/{locale}/tables.php
- resourcees/lang/{locale}/columns.php
- Create validation rule from MySQL table definition.
- rules/{model}.php
- Model creation
- A property is automatically generated from the table column.
- Output belongsTo, hasMany, belongsToMany methods from the foreign key constraint.
- Controller creation
- Output all methods required for CRUD.
- Global scope creation
- Create one global scope class for each model.
- Form request class creation
- The rules are automatically output from the table definition.
- View composer creation
- Automatically generate the logic that passes the form part to the view from the foreign key definition.
- View creation
- Lists, details, new creations and updates are automatically generated.
- Bread crumb list creation
- A breadcrumb trail is automatically output to the file generated by CRUD.
- Template customization
- Depending on the project, you may need to customize the output template. In that case, you can edit the stub as you like.
Install
Setup
1. First and foremost, start by creating a migration file. Be sure to set the comment and foreign key as shown in the example.
- Be sure to add a table comment to the table that generates the model.
- Do not comment on many-to-many intermediate tables.
For the table comment function, diplodocker/comments-loader is used.
2. Execute migration
3. Edit config/app.php to set language
4. Output resource
5. Output all CRUD files
Option
--force
Even if the file exists, it is overwritten and output.--api
Outputs only the REST controller, not the normal controller.--with-api
Output normal controller and controller for REST. It cannot be specified at the same time as--api
.--sortable
The table sorting function is output.--with-export
The table export function is output.--with-filter
The table filter function is output together.--with-trashed
The table export function is output.
Other commands
To customize the output file, execute the following command to output multiple product files with the extension .stub in the /stubs directory. Customize the output file.
All versions of laravel-crud-command with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2.5 | ^7.3 | ^7.4
barryvdh/laravel-dompdf Version ^0.8.6
laravel/framework Version ^6.0 | ^7.0 | ^8.0
laravelcollective/html Version ^6.1 | ^6.2
shibuyakosuke/laravel-form-extend Version ^1.0
diplodocker/comments-loader Version ^0.0.2
shibuyakosuke/laravel-database-validation Version ^1.2.0
shibuyakosuke/laravel-model-replacement Version ^1.1.1
shibuyakosuke/laravel-crud-breadcrumbs Version ^1.0.0
maatwebsite/excel Version ^3.1
watson/rememberable Version ^3.0 | ^4.0 | ^5.0
barryvdh/laravel-dompdf Version ^0.8.6
laravel/framework Version ^6.0 | ^7.0 | ^8.0
laravelcollective/html Version ^6.1 | ^6.2
shibuyakosuke/laravel-form-extend Version ^1.0
diplodocker/comments-loader Version ^0.0.2
shibuyakosuke/laravel-database-validation Version ^1.2.0
shibuyakosuke/laravel-model-replacement Version ^1.1.1
shibuyakosuke/laravel-crud-breadcrumbs Version ^1.0.0
maatwebsite/excel Version ^3.1
watson/rememberable Version ^3.0 | ^4.0 | ^5.0
The package shibuyakosuke/laravel-crud-command contains the following files
Loading the files please wait ....