PHP code example of casperwilkes / laravel-environment_detector

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

    

casperwilkes / laravel-environment_detector example snippets


'environments' => [
        'local' => 'local',
        'dev' => 'localhost',
        'qa' => '',
        'stage' => '',
        'prod' => '',
    ],

'environments' => [
        'local' => 'local',
        'dev' => 'localhost',
        'prod_one' => 'box284.gatorhost.com',
        'prod_two' => 'box246.redhost.com'
    ],

php artisan vendor:publish --tag=env-detector

php artisan envdetector:publish

php artisan envdetector:unpublish