Package Data | |
---|---|
Maintainer Username: | isanmasiv |
Maintainer Contact: | deyurapb@yahoo.com (Muhammad Rafiqi Liputo) |
Package Create Date: | 2016-02-18 |
Package Last Update: | 2016-02-18 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-19 03:03:17 |
Package Statistics | |
---|---|
Total Downloads: | 6 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
####Features :
Generate your model,views,controller and migrations just in few clicks.
Generate OneToMany relationship.
Generate dashboard template.
Delete confirmation message.
Using an interface to design your table.
Rollbacking possibility.
Craft your laravel application faster and easier.
###What's new in v1.2.x
A helper FAB button.
Migration button.
Table rollback (database) button.
Dashboard template generate.
###I. Package installation
```json
require : {
"laravel/framework": "5.2.*",
"Amranidev/scaffold-interface": "v1.2.*"
}
```
```
composer update
```
```php
Amranidev\ScaffoldInterface\ScaffoldInterfaceServiceProvider::class,
Amranidev\Ajaxis\AjaxisServiceProvider::class,
```
```
$ php artisan vendor:publish
```
```
$ php artisan migrate
```
Congratulations, you have successfully installed Scaffold Interface!
###II. Usage
Access to scaffold interface :
http://{your-project}/scaffold to get into scaffoldinterface.
Table creation :
create your table . you can add many of attributes such like (String,date,longtext,etc.)
After creation :
to complete your scaffolding . go to your terminal and type.
$ php artisan migrate
Finally :
scaffolding it's done. go to http://{your-project}/{your-model}
Rollback
Now if you want to rollback your table just check this
Before you make your rollback make sure that you have rollbacked your table from database and avoid to keep routes recoureces.
OneToMany Relationship
example :
basically we want to generate a small app that contain (Clients , Products , Orders).
so the Orders must include the Clients and products foreign keys. then first things first is to generate Clients and Products normally.
after that you could generate Orders and adding two relation to Clients and products.
Check this out
Add (route::group) to vendor/amranidev/scaffold-interface/src/Http/routes.php if you're using laravel 5.2
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.
####TODOS
####DONE
####contact : amranidev@gmail.com