Download the PHP package mangocorporation/laravel-crud-builder without Composer
On this page you can find all versions of the php package mangocorporation/laravel-crud-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mangocorporation/laravel-crud-builder
More information about mangocorporation/laravel-crud-builder
Files in mangocorporation/laravel-crud-builder
Package laravel-crud-builder
Short Description Laravel 5 CRUD builder inspired by CakePHP's bake.
License MIT
Homepage https://mangocorporation.github.io/laravel-crud-builder/
Informations about the package laravel-crud-builder
Laravel 5 CRUD Builder
CRUD builder inspired by CakePHP's bake. With this component you can create simple admin views and controller to start your project faster.
All views are in Twitter Bootstrap scheme to make life easier for everyone.
Installation
After install, don't forget to add this lines in your config/app.php
:
And the alias from The Laravel Collective's components:
How do I do this magic?
In this example below we will imagine that you have a model named User and will work with it.
It' simple, just run this commands in your terminal:
Make Controller
This will create the UsersController.php
file in the appropriate location with the following methods:
- index
- create
- edit
- show
Make Views
After that you will receive 4 questions:
- Generate index view? (yes/no):
- Generate create view? (yes/no):
- Generate edit view? (yes/no):
- Generate show view? (yes/no):
Just answer this questions and be happy!
Do I need to do anything else?
Maybe. :) If you already have a controller ready, you may need to change some things.
All views are based in your Model name, because of this they use variables like $users
and $user
.
If your index method in your UsersController return all data like return view('users.index', compact('users'))
it will work fine.
Otherwise you can change this variables names in your views or controller.
Twitter Bootstrap layout
When you install this component, we add a bootstrap based layout (mango.blade.php
) in your views/layout
.