PHP code example of highsolutions / laravel-environments

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

    

highsolutions / laravel-environments example snippets


'providers' => [
    // ...
    HighSolutions\LaravelEnvironments\EnvironmentServiceProvider::class,
];
bash
php artisan vendor:publish --provider="HighSolutions\LaravelEnvironments\EnvironmentServiceProvider"
bash
    php artisan env:create NAME_OF_ENVIRONMENT
bash
    php artisan env:create local --overwrite
bash
    php artisan make:env NAME_OF_ENVIRONMENT
bash
    php artisan env:copy NAME_OF_EXISTING_ENVIRONMENT NAME_OF_NEW_ENVIRONMENT