PHP code example of timeshow / laravel-cors

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

    

timeshow / laravel-cors example snippets


composer remove barryvdh/laravel-cors timeshow/laravel-cors
composer 
   
protected $middleware = [
  \TimeShow\Cors\HandleCors::class,
    // ...
];

php artisan vendor:publish --tag="cors"

'paths' => ['api/*', 'admin/*'],