2017 © Pedro Peláez
 

library laravel

Reliese Components for Laravel Framework code generation.

image

reliese/laravel

Reliese Components for Laravel Framework code generation.

  • Monday, May 28, 2018
  • by CristianLlanos
  • Repository
  • 34 Watchers
  • 351 Stars
  • 78,374 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 88 Forks
  • 27 Open issues
  • 16 Versions
  • 25 % Grown

The README.md

Reliese Laravel

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

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., (*2)

How does it work?

This package expects that you are using Laravel 5.1 or above. You will need to import the reliese/laravel package via composer:, (*3)

Configuration

It is recommended that this package should only be used on a local environment for security reasons. You should install it via composer using the --dev option like this:, (*4)

composer require reliese/laravel --dev

Then you'll need to register the provider in app/Providers/AppServiceProvider.php file., (*5)

public function register()
{
    if ($this->app->environment() == 'local') {
        $this->app->register(\Reliese\Coders\CodersServiceProvider::class);
    }
}

Models

Generating models with artisan, (*6)

Add the models.php configuration file to your config directory and clear the config cache:, (*7)

php artisan vendor:publish --tag=reliese-models
php artisan config:clear

Usage

Assuming you have already configured your database, you are now all set to go., (*8)

  • Let's scaffold some of your models from your default connection.
php artisan code:models
  • You can scaffold a specific table like this:
php artisan code:models --table=users
  • You can also specify the connection:
php artisan code:models --connection=mysql
  • If you are using a MySQL database, you can specify which schema you want to scaffold:
php artisan code:models --schema=shop

Customizing Model Scaffolding

To change the scaffolding behaviour you can make config/models.php configuration file fit your database needs. Check it out ;-), (*9)

Tips

1. Keeping model changes

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., (*10)

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., (*11)

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 :-), (*12)

Support

For the time being, this package supports MySQL, PostgreSQL and SQLite databases. Support for other databases are encouraged to be added through pull requests., (*13)

The Versions

28/05 2018
06/04 2018

dev-analysis-zGegmO

dev-analysis-zGegmO http://cristianllanos.com

Reliese Components for Laravel Framework code generation.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cristian Llanos

laravel reliese

01/04 2018

dev-analysis-zEd3VM

dev-analysis-zEd3VM http://cristianllanos.com

Reliese Components for Laravel Framework code generation.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cristian Llanos

laravel reliese

04/02 2017
09/01 2017
01/11 2016
01/11 2016
24/10 2016
24/10 2016
23/10 2016
20/10 2016
17/10 2016
17/10 2016
17/10 2016
17/10 2016