Ad

Laravel Database Connection

- 1 answer

My application was built using Laravel. I got an error which shown on occassion.

FatalErrorException in Model.php line 3335: Call to a member function connection() on null

On model.php line 3335, there is :

public static function resolveConnection($connection = null)
{
   return static::$resolver->connection($connection);
}

How do I troubleshoot/fix the error?

Ad

Answer

I finally be able to solve the issue. I'm using Cartalyst Sentinel for my auth and moving the providers to the bottom of the list resolve the issue. I think it must be put below the AuthServiceProvider

Ad
source: stackoverflow.com
Ad