PHP code example of teikun-86 / laravel-modular

1. Go to this page and download the library: Download teikun-86/laravel-modular 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/ */

    

teikun-86 / laravel-modular example snippets


return [
    /*
     |------------------------------------------------------------
     | Namespace Configuration
     |------------------------------------------------------------
     | Base namespace for all generated modules.
     | Can be overridden by environment variable or module config.
     | Should usually match your application's root namespace.
     | Default: 'LaravelApp'
     | Example: 'LaravelApp', 'MyProject'
     | Example output: namespace LaravelApp\Modules\User\Models;
     |------------------------------------------------------------
     */
    'namespace' => env('MODULAR_NAMESPACE', 'LaravelApp'),
];
bash
php artisan vendor:publish --tag="modular-config"