Package Data | |
---|---|
Maintainer Username: | raheel |
Maintainer Contact: | raheel@amcysoft.com (Raheel) |
Package Create Date: | 2016-06-18 |
Package Last Update: | 2016-06-19 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-11 15:06:07 |
Package Statistics | |
---|---|
Total Downloads: | 88 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 2 |
Total Open Issues: | 2 |
Hi, this is a scaffold generator for Laravel 5.2 with bootstrap 3 template.
composer require 'amcysoft/scaffold' "@dev"
Open config/app.php
and the following to your providers array, add:
Amcysoft\Scaffold\ScaffoldServiceProvider::class,
You're now able to run artisan command. Run php artisan
from the console, and you'll see the new commands make:scaffold
.
But before doing this, run the following command to make the setup.
php artisan make:auth
php artisan make:scaffold Article title:string description:text
This command will generate:
database/migrations/2016_06_18_171537_create_articles_table.php
app/Http/Controllers/ArticlesController.php
app/Article.php
resources/views/articles/create.blade.php
resources/views/articles/edit.blade.php
resources/views/articles/form.blade.php
resources/views/articles/index.blade.php
resources/views/articles/show.blade.php
database/seeds/ArticlesTableSeeder.php
This scaffolding will automatically add route to routes.php file, run the migration, and seeds the data.
You can also rollback your scaffolding by the following command.
php artisan remove:scaffold Article
This will reverse all the process generated by scaffold:make command.