PHP code example of robertogallea / pulse-api

1. Go to this page and download the library: Download robertogallea/pulse-api 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/ */

    

robertogallea / pulse-api example snippets


'middleware' => [
    'api',
    Authorize::class, // the default Pulse middleware
],

'resources' =>
    \Robertogallea\PulseApi\Services\PulseAPI::getDefaultResources()->merge([
        // Add your custom resources
    ])->toArray(),

'
shell
php artisan vendor:publish --tag=pulse-api-config