Skip to content

linhnh95/laravel-5-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages