PHP code example of jenky / laravel-envloader

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

    

jenky / laravel-envloader example snippets


'Jenky\LaravelEnvLoader\EnvLoaderServiceProvider',
// or 
Jenky\LaravelEnvLoader\EnvLoaderServiceProvider::class, // PHP 5.5

/*
 * Application Service Providers...
 */
App\Providers\AppServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
// ... 

/* configs.php */

return [
	'local' => [
		'app' => [
			'url' => 'http://myapp.local',
		],
	],
	'sandbox' => [
		'app' => [
			'url' => 'http://sandbox.myapp.com',
		],
	],
	'testing' => [
		'session' => [
			'driver' => 'file',
		],
	],
];

/* aliases.php */

return [
	'local|staging' => [
		'Debugbar' => 'Barryvdh\Debugbar\Facade',
	],
];

php artisan vendor:publish