Laravel 5 Layer is a package that helps to create structure and help with the project construction process.
Require this package with composer. It is recommended to only require the package.
composer require linhnh95/laravel5layer
Add the ServiceProvider to the providers array in config/app.php
App\Providers\RepositoryServiceProvider::class,
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) {
}
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}