Package Data | |
---|---|
Maintainer Username: | abmti |
Maintainer Contact: | sohelamincse@gmail.com (Sohel Amin) |
Package Create Date: | 2015-06-23 |
Package Last Update: | 2015-09-29 |
Home Page: | https://packagist.org/packages/appzcoder/crud-generator |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-22 03:07:34 |
Package Statistics | |
---|---|
Total Downloads: | 117 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Laravel CRUD Generator
Laravel >=5.1
PHP >= 5.5.9
Run
composer require abmti/laravel-scaffold-generate
Add service provider into /config/app.php file.
'providers' => [
...
Appzcoder\CrudGenerator\CrudGeneratorServiceProvider::class,
],
Add bellow lines for "illuminate/html" package if you've not done yet.
'providers' => [
...
Illuminate\Html\HtmlServiceProvider::class,
],
'aliases' => [
...
'Form' => Illuminate\Html\FormFacade::class,
'HTML' => Illuminate\Html\HtmlFacade::class,
],
Run composer update
Note: You should have configured database as well for this operation.
php artisan crud:generate crud-name --fields="name:string, email:string, phone:integer, message:text"
For controller generator:
php artisan crud:controller NameController --crud-name="Name"
For model generator:
php artisan crud:model Name --fillable="['name', 'email', 'message']"
For migration generator:
php artisan crud:migration migration-name --schema="name:string, email:string, phone:integer, message:text"
For view generator:
php artisan crud:view crud-name --fields="name:string, email:string, phone:integer, message:text"
##Author
Sohel Amin