PHP code example of ymigval / laravel-wwwprotocolresolver

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

    

ymigval / laravel-wwwprotocolresolver example snippets


return [
    'type' => env('WWW_PROTOCOL_RESOLVER_TYPE', 301),
    'use' => env('WWW_PROTOCOL_RESOLVER_USE'),
    'mode' => env('WWW_PROTOCOL_RESOLVER_MODE'),
];
bash
php artisan vendor:publish --tag="wwwprotocolresolver"