Created
September 15, 2022 07:21
-
-
Save zoparga/6dd32eaa0e9c12b41a1bae52531ae747 to your computer and use it in GitHub Desktop.
Add these to AppServiceProvider to provide proper DEV environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (! app()->environment('local')) { | |
\URL::forceScheme('https'); | |
} | |
if (! app()->environment('production')) { | |
Mail::alwaysTo('dev@email.address'); | |
} | |
Model::preventLazyLoading(! app()->isProduction()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment