PHP code example of tonysm / sail-proxy

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

    

tonysm / sail-proxy example snippets


// config/services.php
'blog' => [
    'url' => env('BLOG_URL', env('LARAVEL_SAIL', 0)
        ? 'http://blog.internal'
        : 'http://blog.localhost'),
],
bash
# macOS
echo 'nameserver 127.0.0.1' | sudo tee /etc/resolver/localhost