Where to register Facades & Service Providers in Lumen

In your bootstrap/app.php, make sure you’ve un-commented: $app->withFacades(); Then, register you class alias and check if it already exists (else your tests will break): if (!class_exists(‘JWTAuth’)) { class_alias(‘Tymon\JWTAuth\Facades\JWTAuth’, ‘JWTAuth’); } To register your ServiceProvider, check your bootstrap/app.php: /* |————————————————————————– | Register Service Providers |————————————————————————– | | Here we will register all of the application’s service … Read more

Laravel Lumen Memcached not found

I spent 3 hours on this problem today. With the help of the post of demve in this topic, I found the solution. Very simple! I hope it won’t affect me later in my development. Just to it, in the .env file : CACHE_DRIVER=array SESSION_DRIVER=array QUEUE_DRIVER=array Ok, I make an UPDATE because I was faced … Read more

Lumen Micro Framework => php artisan key:generate

The Laravel command is fairly simple. It just generates a random 32 character long string. You can do the same in Lumen. Just temporarily add a route like this: $router->get(‘/key’, function() { return \Illuminate\Support\Str::random(32); }); Then go to /key in your browser and copy paste the key into your .env file. Afterwards remove the route. … Read more

Change Timezone in Lumen or Laravel 5

You can set your app time zone by configuring app.php file in config folder . To change time zone , modify the value of timezone in app.php file. This is written in this section |————————————————————————– | Application Timezone |————————————————————————– | | Here you may specify the default timezone for your application, which | will be … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)