Download the PHP package brnbio/laravel-crud without Composer
On this page you can find all versions of the php package brnbio/laravel-crud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-crud
Code generation for Laravel
This lib helps to generate code for Laravel projects.
Installation
If you want your own templates, make sure you publish the stubs to your application.
Macroable
If you want to add your own replacements, you can easy update the replacements. All basic replacements, command arguments and options are available.
Basic replacements
{{ namespace }}
- Namespace for generated class{{ rootNamespace }}
- Base namespace{{ class }}
- Class name{{ namespacedModel }}
- Namespaced model class{{ model }}
- Name of the model{{ modelVariable }}
- Variable name for the model{{ modelVariablePlural }}
- Variable name for the model in plural
Usage
Generate everything for model Team
: Model, Controller, Views, Requests and Migration.
If you want to do it manually, you can use the basic commands to generate.
Generate model
In addition to the basic replacements, the following replacements are available for the request:
{{ table }}
- Table name (if set by option){{ attributes }}
- List of the attribute constants{{ fillable }}
- List of the fillable attributes{{ properties }}
- List of the properties based on the attributes for the doc block
Generate migration
In addition to the basic replacements, the following replacements are available for the request:
{{ fields }}
- List of table fields based on the attributes
Generate controller
In addition to the basic replacements, the following replacements are available for the request:
{{ storeRequest }}
- Store request class{{ namespacedStoreRequest }}
- Store request class with namespace{{ updateRequest }}
- Update request class{{ namespacedUpdateRequest }}
- Update request class with namespace
Generate view
Generate request
In addition to the basic replacements, the following replacements are available for the request:
{{ rules }}
- List of rules based on the attributes