Download the PHP package zezont4/laravel-generator without Composer
On this page you can find all versions of the php package zezont4/laravel-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zezont4/laravel-generator
More information about zezont4/laravel-generator
Files in zezont4/laravel-generator
Package laravel-generator
Short Description Generate the main classes that laravel uses to work with database . Like model,controller,request,blade forms
License MIT
Homepage https://github.com/zezont4/LaravelGenerator
Informations about the package laravel-generator
Laravel 5 Generator
Requirements
PHP >= 5.5.9
Laravel >=5.2
Auto Loaded : [laravelcollective/html package for form & html](https://laravelcollective.com/docs/5.2/html)
HOW IT WORKS ?
Select your MySql table then Laravel Generator will generate :
-Model. -Controller. -Request. -Forms (index "with filters and sorting",search,show,edit,create) using Materialize Css. -Auto generated Routs and language array.
It's a little bit smart , So it will do the following:
-Field comment in database will be the Label , if not exists thin the field name. -If type of field is TINYINT(1) then the Input type will be Radio (Optional). -If the field does not allow Null then it will be required in the request. -if field is set to be unique in database the a unique validation will be set. -if type of field is int the a numeric validation will be set.
You can configure the models path and messages and buttons labels by changing them in (config/zlg.php) file.
You can customize fields template by changing them in (resources/views/zezont4/components/form).
For security , It only works if APP_ENV=local in .env file.
Installation
-
Run
-
Add service provider & Aliases to /config/app.php file.
-
Publish assets and components files.
- Visit (http://your_host_name/*laravel_generator*)
- Copy layouts files from resources/views/copy_to_layouts to resources/views/layouts.
- Copy assets files from public/copy_to_public to public root.
Credits
License
The MIT License (MIT). Please see License File for more information.