v2.1.0
For full documentation on this release please visit http://crestapps.dev/laravel-code-generator/docs/2.1
Release Notes
Version 2.1 introduces more flexibility, less work for you out of the box! Follow is a list of all new features and changes that were introduced.
Everything is translatable!
When generation a resources for a multiple-languages based application, Laravel-Code-Generator provides you with a translation to everything out of the box! That means in addition to the fields, all button, labels, placeholder and title will have a locale key.
More configurations to allow very minimal effort to generate 100% production ready code.
generic_view_labels was added to the configuration file to allow you to add translations for the generic labels like button and title with in the view. You can even add custom templates to automaticly replace!
* **placeholder_by_html_type** was added to the configuration file to allow you to generate placeholder text by html-type when no placeholder is provided. This will save you from having to manually create placeholder text for your fields. If you don't like to use placeholder for text, you can easily remove `'text' => 'Enter [% field_name %] here...',` from the configuration.
Creating multiple resorces using one command!
Yes! You are now able to create multiple resources using a mapping file. In other words, you can create complete resources for your entire database using one command!
Easier commands
-
For the sake of consistency and to make the commands easier to use and remember, almost all commands now accept the same argument which is the model name. (ex, Asset, AssetCategory...)
-
You no longer need to add the fields file name as an option (ex. --fields-file:assets.json), it is automaticly passed. For example, when using php create:resources AssetCategory the generator will look for a file called assets_categories.json.
New commands
php artisan fields-file:delete allows you to delete existing fields file. Using this command also updates the resources mapping file.
php artisan create:mapped-resourced allows you to generate multiple resources all at once.
Multiple Bug fixed
All known bugs have been addressed!
Easier installation with Laravel 5.5!
When using Laravel >= 5.5, there is no need to update the config/app.php file to bootstrap the package! Laravel will take care of that for you using the composer.json file.
Upgrade Guide
- Update your crestapps/laravel-code-generator dependency to 2.1.* in your composer.json file.
- From the command line, execute the following two commands
composer update
php artisan vendor:publish --provider="CrestApps\CodeGenerator\CodeGeneratorServiceProvider" --tag=default --force