Skip to content

Instantly share code, notes, and snippets.

View mabasic's full-sized avatar
🏠
Working from home

Mario Bašić mabasic

🏠
Working from home
View GitHub Profile
@mabasic
mabasic / environment.php
Last active December 20, 2019 02:47
Laravel - detectEnvironment
<?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.