PHP code example of mphpmaster / laravel-helper-loader

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

    

mphpmaster / laravel-helper-loader example snippets


return [
    'allowed_suffix' => [
        '.functions',
        '.class'
    ],

    'allowed_extension' => '.php',

    'auto_load_paths' => [],
];

    'auto_load_paths' => [
        app_path("Helpers"),
        app_path("Test"),
        base_path("Helpers"),
    ],

use MPhpMaster\LaravelHelperLoader\HelperLoader;

HelperLoader::autoLoad(app_path("Helpers"));
bash
php artisan vendor:publish --tag="mphpmaster-configs"