In the service provider, the current User is shown, for which it is necessary to correctly show that the App\Providers\AuthServiceProvider::class provider is first started and then my provider.

How to make the launch of one provider possible only after the launch of another provider?
Is it possible to set the launch order of providers?

Tried to change the order in the config / app.php did not help.

  • why do you need it? - Naumov
  • It is necessary that the user first logged in only then it was possible to vivodit it - a_mine
  • Well, check isAuth and output either policy do the police - Naumov

0