PHP code example of toanna / laravel-5-layer

1. Go to this page and download the library: Download toanna/laravel-5-layer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

toanna / laravel-5-layer example snippets


$ php artisan 5l:init

$ php artisan 5l:abstraction ExternalServiceInterface/IFileUploader

$ php artisan 5l:business CreateFileBL

$ php artisan 5l:business_service CreateFileBS

$ php artisan 5l:controller TestController

$ php artisan 5l:api_controller FileController

$ php artisan 5l:dependency Repositories/SQLFileCreator

$ php artisan 5l:domain_model File

$ php artisan 5l:eloquent FileEloquent

$ php artisan 5l:exception ValidationException

$ php artisan 5l:request CreateFileRequest

$ php artisan 5l:resource

$ php artisan 5l:console AbstractionMakeCommand