Looking to hire Laravel developers? Try LaraJobs

laravel5layer maintained by linhnh95

Description
Library Support For Structure Laravel
Last update
2020/06/18 06:36 (dev-master)
License
Links
Downloads
283

Comments
comments powered by Disqus

laravel-5-layer

Laravel 5 Layer is a package that helps to create structure and help with the project construction process.

Installation

Require this package with composer. It is recommended to only require the package.

composer require linhnh95/laravel5layer

Config

Add the ServiceProvider to the providers array in config/app.php

App\Providers\RepositoryServiceProvider::class,

Cache Query

Add the source code to the stores array in config/cache.php

'request' => [
    'driver' => 'array'
]

Later add the source code to bottom public/index.php

try {
    $app->make('cache')->store('request')->flush();
} catch (ReflectionException $ex) {
}

Usage

After running the composer. Turn on the terminal screen and run the command

php artisan linh-5layer:init

To create a series of processing files for a Model using 5 layers

php artisan linh-5layer:create {Model}