Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Mario Bašić mabasic

🏠
Working from home
View GitHub Profile
@mabasic
mabasic / environment.php
Last active Dec 20, 2019
Laravel - detectEnvironment
View environment.php
<?php
/*
|--------------------------------------------------------------------------
| Detect The Application Environment
|--------------------------------------------------------------------------
|
| Laravel takes a dead simple approach to your application environments
| so you can just specify a machine name for the host that matches a
| given environment, then we will automatically detect it for you.