Relative Content

Tag Archive for laravel

Laravel routing response empty even though view exits

I have a web site developed by Laravel & mysql on Ubuntu.
it worked for several years well, but suddenly it does not work.
for routing ‘site.com/profile’ responses empty always.
but ‘/profile1’ is working , and ‘/profile/show’ is also working.

Laravel sometimes error 500, SQLSTATE[HY000] [1045]

Laravel sometimes error 500, SQLSTATE[HY000] [1045]
I’m trying to make application settings from the database, otherwise load from .env
How to make a request to the database in the service provider?
Sometimes there is no error, sometimes there is error 500 and there is no connection to the database.