PHP code example of cumulati / distributed-laravel
1. Go to this page and download the library: Download cumulati/distributed-laravel 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/ */
cumulati / distributed-laravel example snippets
return [
'namespaces' => [
// Define a simple namespace mapping
'Infrastructure' => base_path() . DIRECTORY_SEPARATOR . 'infrastructure',
// Here we define a namespace mapping with route config
'Api' => [
'path' => base_path() . DIRECTORY_SEPARATOR . 'api',
'route' => [
'middleware' => [
'requestid'
]
]
],
],
// middleware to be applied to all routes within routes.php or routes_protected.php.
'protection_middleware' => [
'auth:api'
],
'resource_namespace' => 'resources',
'language_folder_name' => 'lang',
'view_folder_name' => 'views'
];