PHP code example of resultsystems / laravel-cors

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

    

resultsystems / laravel-cors example snippets


 protected $middleware = [
        // other middleware ommited
    	\ResultSystems\Cors\CorsMiddleware::class,
 ];

// file START ommited
    'providers' => [
        // other providers ommited
        \ResultSystems\Cors\CorsServiceProvider::class,
    ],
// file END ommited
shell
php artisan vendor:publish  --provider="ResultSystems\Cors\CorsServiceProvider"