Reliese Components for Laravel Framework code generation. Coded by Cristian Llanos, modified by me to work with Laravel 6.1
kazak71/reliese is a Laravel package for reliese components for laravel framework code generation. coded by cristian llanos, modified by me to work with laravel 6.1.
It currently has 0 GitHub stars and 87 downloads on Packagist.
Install it with composer require kazak71/reliese.
Discover more Laravel packages by kazak71
or browse all Laravel packages to compare alternatives.
Last updated
Reliese Laravel is a collection of Laravel Components which aim is to help the development process of Laravel applications by providing some convenient code-generation capabilities.
This package expects that you are using Laravel 5.1 or above.
You will need to import the reliese/laravel package via composer:
composer require kazak71/reliese
Add the service provider to your config/app.php file within the providers key:
// ...
'providers' => [
/*
* Package Service Providers...
*/
Reliese\Coders\CodersServiceProvider::class,
],
// ...
If you wish to enable generators only for your local environment, you should install it via composer using the --dev option like this:
composer require reliese/laravel --dev
Then you'll need to register the provider in app/Providers/AppServiceProvider.php file.
public function register()
{
if ($this->app->environment() == 'local') {
$this->app->register(\Reliese\Coders\CodersServiceProvider::class);
}
}

Add the models.php configuration file to your config directory and clear the config cache:
php artisan vendor:publish --tag=reliese-models
php artisan config:clear
Assuming you have already configured your database, you are now all set to go.
php artisan code:models
php artisan code:models --table=users
php artisan code:models --connection=mysql
php artisan code:models --schema=shop
To change the scaffolding behaviour you can make config/models.php configuration file
fit your database needs. Check it out ;-)
You may want to generate your models as often as you change your database. In order
not to lose you own model changes, you should set base_files to true in your config/models.php.
When you enable this feature your models will inherit their base configurations from base models. You should avoid adding code to your base models, since you will lose all changes when they are generated again.
Note: You will end up with two models for the same table and you may think it is a horrible idea to have two classes for the same thing. However, it is up to you to decide whether this approach gives value to your project :-)
For the time being, this package only supports MySQL databases. Support for other databases will be added soon.