library mrliputocrudlaravel
A Smart CRUD Generator For Laravel
isanmasiv/mrliputocrudlaravel
A Smart CRUD Generator For Laravel
- Thursday, February 18, 2016
- by isanmasiv
- Repository
- 1 Watchers
- 1 Stars
- 2 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
, (*1)
ScaffoldInterface (CRUD Generator)
, (*2)
Features :
-
Generate your model,views,controller and migrations just in few clicks., (*3)
-
Generate OneToMany relationship., (*4)
-
Generate dashboard template., (*5)
-
Delete confirmation message., (*6)
-
Using an interface to design your table., (*7)
-
Rollbacking possibility., (*8)
-
Craft your laravel application faster and easier., (*9)
What's new in v1.2.x
-
A helper FAB button., (*10)
-
Migration button., (*11)
-
Table rollback (database) button., (*12)
-
Dashboard template generate., (*13)
I. Package installation
-
Add scaffold-interface to your composer.json file to require Scaffold-Interface :, (*14)
require : {
"laravel/framework": "5.2.*",
"Amranidev/scaffold-interface": "v1.2.*"
}
-
Update Composer :, (*15)
composer update
-
Add the service provider to config/app.php :, (*16)
Amranidev\ScaffoldInterface\ScaffoldInterfaceServiceProvider::class,
Amranidev\Ajaxis\AjaxisServiceProvider::class,
-
Publish assets in your application with :, (*17)
$ php artisan vendor:publish
-
Migrate scaffoldinterface :, (*18)
$ php artisan migrate
Congratulations, you have successfully installed Scaffold Interface!, (*19)
II. Usage
-
Access to scaffold interface :, (*20)
http://{your-project}/scaffold to get into scaffoldinterface., (*21)
-
Table creation :, (*22)
create your table . you can add many of attributes such like (String,date,longtext,etc.), (*23)
-
After creation :, (*24)
to complete your scaffolding . go to your terminal and type., (*25)
```
$ php artisan migrate, (*26)
```, (*27)
-
Finally :, (*28)
scaffolding it's done. go to http://{your-project}/{your-model}, (*29)
-
Rollback, (*30)
Now if you want to rollback your table just check this, (*31)
, (*32)
Before you make your rollback make sure that you have rollbacked your table from database and avoid to keep routes recoureces., (*33)
-
OneToMany Relationship, (*34)
example :, (*35)
basically we want to generate a small app that contain (Clients , Products , Orders)., (*36)
so the Orders must include the Clients and products foreign keys.
then first things first is to generate Clients and Products normally., (*37)
after that you could generate Orders and adding two relation to Clients and products., (*38)
-
Check this out, (*39)
Add (route::group) to vendor/amranidev/scaffold-interface/src/Http/routes.php if you're using laravel 5.2, (*40)
Route::group(['middleware' => 'web'], function () {
Route::get('scaffold', '\Amranidev\ScaffoldInterface\Http\Controllers\GuiController@index');
Route::post('scaffold/guipost', '\Amranidev\ScaffoldInterface\Http\Controllers\GuiController@store');
Route::get('scaffold/guirollback/{id}', '\Amranidev\ScaffoldInterface\Http\Controllers\GuiController@destroy');
Route::get('scaffold/guidelete/{id}', '\Amranidev\ScaffoldInterface\Http\Controllers\GuiController@deleteMsg');
Route::get('scaffold/getAttributes/{table}', '\Amranidev\ScaffoldInterface\Http\Controllers\GuiController@GetResult');
});
Contribution
Any ideas are welcome. Feel free to submit any issues or pull requests., (*41)
TODOS
- [ ] 100% Code coverage + Maximum code quality.
DONE
- [x] Add a select for OneToMany (on data fields) in interface.
- [x] Laravel 5.2 supported.
- [x] Laravel 5.1 supported.
dev-master
9999999-dev
http://github.com/isanmasiv/mrliputocrudlaravel
A Smart CRUD Generator For Laravel
Sources
Download
MIT
The Requires
The Development Requires
by
Muhammad Rafiqi Liputo
laravel
framework
crud
scaffold
files
crud generator
scaffolding
laravel bootstrap
laravel materialize
amranidev
amrani houssain
amrnaihoussain
laravel 5.1
scaffod
scaffoldinterface
crud generators
laravel 5.2
smart crud generator
smart generator