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 ...

Generating application key in Lumen

To generate application key in Lumen , please add your routes/web.php and point your domain to /key and copy the output ...

How to use db prefix in Lumen ?

To use db prefix in Lumen, In your .env file add new constant "DB_PREFIX" Usage:

Class ‘DB’ not found in Lumen

By defaults Facades are not enabled in Lumen, To use DB Facade functions un-comment $app->withFacades(); line from ...

How to list all routes in Laravel ?

getRoutes() method of Route Facade is used to list all routes in Laravel. Below are sample usage Example ...

Creating Custom middleware in Laravel 5.4

In Laravel Middlewares are used for filter HTTP requests in your application. In this post we are going to create a ...