PHP code example of evo-mark / evo-laravel-service-facades

1. Go to this page and download the library: Download evo-mark/evo-laravel-service-facades 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/ */

    

evo-mark / evo-laravel-service-facades example snippets


php artisan make:service
php artisan facades:annotate

use EvoMark\EvoLaravelServiceFacades\Facades\ServiceFacades;

public function boot()
{
    ServiceFacades::registerLocation(
        name: "Custom Location",
        serviceNamespace: "App\\CustomServices",
        facadeNamespace: "App\\CustomFacades",
        servicePath: app_path('CustomServices'),
        facadePath: app_path('CustomFacades'),
        exclude = ["SomeExcludedService"]
    );
}
json
 "post-autoload-dump": [
    "@php artisan facades:annotate --no-interaction"
],