Skip to content

Releases: CrestApps/laravel-code-generator

v2.1.6

18 Sep 01:09
Compare
Choose a tag to compare

fixes a bug in the default-collective template.

Make sure to publish the template

php artisan vendor:publish --provider="CrestApps\CodeGenerator\CodeGeneratorServiceProvider" --tag=default-collective

v2.1.5

20 Aug 00:28
Compare
Choose a tag to compare
Fixes repeated class name in the controller issue

v2.1.4

15 Jul 21:05
Compare
Choose a tag to compare

This release includes few bug found in previous versions.

v2.1.3

09 Jul 18:24
Compare
Choose a tag to compare

Fixes a bug when generating resources from existing database. #22

v2.1.2

08 Jul 21:07
Compare
Choose a tag to compare

Fixed a bug found in v2.1.1

v2.1.1

02 Jul 00:34
Compare
Choose a tag to compare

Includes couple bugs found in version 2.1.0

v2.1.0

30 Jun 00:11
Compare
Choose a tag to compare

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

v2.0.0

23 May 03:19
Compare
Choose a tag to compare

Version 2.0 introduces multiple exciting features to make code generation very easy and reusable. Follow is a list of all new features and changes that were introduced.

Full documentation about the new release can be found here http://crestapps.dev/laravel-code-generator/docs/2.0#release-notes

v1.2.1

17 Apr 03:22
Compare
Choose a tag to compare

This release fixed couple bugs in the previous version.

v1.2.0

09 Apr 00:19
Compare
Choose a tag to compare

What's New?

This release includes multiple bug fixes. Also it includes multiple improvements. Here are few

  • Nicely format any datetime, date or time field.
  • Auto handles any boolean field.
  • Better way of handling the file uploads.
  • Lots of the validation rules are auto generated based on the data-type.
  • Auto convert empty string to null for any nullable field.

Upgrade

If you are upgrading from a previous version, do the following two steps.

  • Open the composer.json file. Change the version for crestapps/laravel-code-generator from existing to ^1.2.
  • Execute composer update command from the command-line to get the new version.
  • Re-publish the views to get the latest views using the following command
php artisan vendor:publish --provider="CrestApps\CodeGenerator\CodeGeneratorServiceProvider" --tag=default --force

Documentation

For full documentation read https://crestapps.com/laravel-code-generator/docs/1.2

Live demo can be found at https://crestapps.com/laravel-code-generator/demos/1.2

Enjoy it and happy coding!