Mondy
Mondy

Reputation: 2295

Laravel Lumen does not load AppServiceProvider.php

I added dd to the boot function into AppServiceProvider.php. There I added:

public function boot()
{
    dd("123456");
}

But the application works without dumping the 123456. Looks like the file will be ignored. How can I solve it?

Thanks for help.

Upvotes: 1

Views: 828

Answers (1)

mrhn
mrhn

Reputation: 18986

In your bootstrap/app.php file, you will need to have a line similar to this.

$app->register(App\Providers\AppServiceProvider::class);

Upvotes: 2

Related Questions