PHP code example of faisal50x / laravel-bundle

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

    

faisal50x / laravel-bundle example snippets


// config for Faisal50x/Laravel-bundle
return [
    'model_dir' => 'Models',
    'repository' => [
        /**
         * Define your repository directory here
         * Default path is app/Repositories
         */
        'dir' => 'Repositories',
        /**
         * Define your repository contract path here
         * Default path is app/Repositories/Contracts
         */
        'contract' => [
            'dir' => 'Contracts',
        ],
        'modules' => [
            /**
             * module base direct
             * default path is modules inside your project root directory
             */
            'base_dir' => 'modules',
            /**
             * Module source directory
             * default module/app/Repositories
             */
            'src_dir' => 'app',
        ],
    ],
];
bash
php artisan vendor:publish --tag="bundle-config"