PHP code example of oanhnn / laravel-handlers

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

    

oanhnn / laravel-handlers example snippets


$app->configure('handlers');

$app->register(Laravel\Handlers\ServiceProvider::class);

    'namespace' => '\\App\\Http\\Api',

    'base' => '\App\Http\Controllers\Controller::class',
bash
$ cp vendor/oanhnn/laravel-handlers/config/handlers.php config/handlers.php
bash
$ php artisan make:handler ShowProfile
bash
$ php artisan make:handler --force ShowProfile