Support the ongoing development of Laravel.io →
posted 9 years ago
Database
Last updated 1 year ago.
0

It could be that Laravel is not detecting your application environment.

you can check what environment it is using with

command line: php artisan env

or in code: dd(App::environment());

Then check if that environment is defined in the bootstrap/start.php file

Hope that helps.

Last updated 1 year ago.
0

Hmm that could be it, strange that it works fine most of the time. I have configured debug bar to display environment so the next time it occurs it should display it to me. Thanks for the tip.

Last updated 1 year ago.
0

Now it happened again, unfortunately the problem is not in the environment detection. I've looked at debugbar and it displayed local like it should, again reloading fixed the problem but I don't want my users to encounter random errors.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Joe5 joe5 Joined 26 Oct 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.