Download the PHP package janareit/laravel5generators without Composer
On this page you can find all versions of the php package janareit/laravel5generators. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download janareit/laravel5generators
More information about janareit/laravel5generators
Files in janareit/laravel5generators
Package laravel5generators
Short Description Laravel 5 Generators
License BSD-3-Clause
Informations about the package laravel5generators
Laravel 5 Generators
(suitable for 5.2)
This is a custom fork from http://sky.pingpong-labs.com/docs/2.0/generators Official documentation available from there.
Its forked for better match my own needs for quick scaffolding in different Laravel 5 projects.
Additions/Changes from original:
- RouteModel binding functionality added and scaffolded to existiong file
- Controller actions upgraded to inject Model classes to take use of RouteModelBindings
- 'extends' functionality for views now possible to input from scaffold command
- 'prefix' can be multi-level deep. For example
--prefix=Main/Admin
- Models stored to
App\Repositories
folder - 'responsive' generates responsive index view instead of table style
Example usage
Preparations:
-
To correctly edit with scaffolding
RouteServiceProvider.php
file you need to add a comment line inside yourboot
method: - Add provider to app.php config
Run from console for example:
PS: layouts.master will be stored to views root directory for security reasons so you don't overwrite your original master by accident.
If you don't have a layout master you should move it to resources/views/layouts
This should output (no questions asked, as last flag declares):
Generated files are:
Additions to existing files are:
If all worked out correctly you should be able to see your newly created CRUD pages at yourdomain/masterdata/manufacturing/moulding_machines url.
Credits
Thank you guys at Pingpong labs (https://github.com/pingpong-labs/generators)!
All versions of laravel5generators with dependencies
illuminate/filesystem Version 5.2.*
illuminate/support Version 5.2.*
pingpong/support Version 2.2.*
doctrine/dbal Version ~2.5