After some interest in the Laravel subreddit, I've decided to run a refactoring exercise a few times...
The "all" function returns a collection, not a query. You need to use something like Bears...
I know it's not technically solving your problem, but you should really not be dispatching requests...
Reached said: Hey CodeATbusiness, But isn't the service provider more of an optional step to abstra...
Why not use something like this? 'host' => (getenv('database_host') !== false) ? getenv('database...
The Laravel portal for problem solving, knowledge sharing and community building.