linhnh95/laravel5layer

Library Support For Structure Laravel

1.1.19 2020-05-19 02:21 UTC

This package is auto-updated.

Last update: 2024-10-18 14:08:56 UTC


README

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}