Call to a member function connection() on null Laravel Lumen

By defaults Eloquent is not enabled in Lumen, To use Eloquent functions un-comment $app->withEloquent(); line from your bootstrap/app.php file.

Leave a Reply

Your email address will not be published. Required fields are marked *