lundi 2 avril 2018

Auth data is not accessible in AppServiceProvider Laravel 5.5

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
use App\Classes\DynamicMenu;
use App\Http\Controllers\WelcomeController;
use Auth;

class AppServiceProvider extends ServiceProvider
{

    public function boot()
    {
       dd(Auth::user());   
    }
}

Hi guys, this returns 'null' for me. but other controllers returns user details. how to fix this..?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire