PHP code example of ttungbmt / laravel-cors-proxy

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

    

ttungbmt / laravel-cors-proxy example snippets


return [
];

$corsProxy = new ttungbmt\CorsProxy();
echo $corsProxy->echoPhrase('Hello, ttungbmt!');
bash
php artisan vendor:publish --tag="laravel-cors-proxy-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="laravel-cors-proxy-config"
bash
php artisan vendor:publish --tag="laravel-cors-proxy-views"