Download the PHP package tdebatty/laravel-resource-generator without Composer
On this page you can find all versions of the php package tdebatty/laravel-resource-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tdebatty/laravel-resource-generator
More information about tdebatty/laravel-resource-generator
Files in tdebatty/laravel-resource-generator
Package laravel-resource-generator
Short Description Source code generator for laravel resources
License MIT
Informations about the package laravel-resource-generator
Laravel Resource Generator
A source code generator for Laravel resources.
In Laravel, you can create a resource controller using the command . But:
- the controller contains only empty methods
- you have to manually add request validation
- you have to write all your views
With this plugin, you immediately get working code:
- a fully functional controller with request validation
- basic views to list, create, modify and delete your resource
Installation
Example
The default controller and views assume resources have a name field. You have to add this field manually to your migration file (and other fields according to your needs):
You can now migrate and check the result:
Compatibility
Currently generates code for Laravel 5.6 (Bootstrap 4). The generated code is vanilla Laravel code (i.e. views use Blade syntax with no additional libraries or dependencies).
The generator can also add icons using following icon sets:
- Font Awesome 5 :
- Font Awesome 4 :
All versions of laravel-resource-generator with dependencies
illuminate/console Version ^8.0 || ^9.0
illuminate/filesystem Version ^8.0 || ^9.0
composer/composer Version ^1.6 || ^2.0