Laravel Controller Constructeur Auth utilisateur null
class BaseController extends Controller
{
public $user_info;
public function __construct(){
$this->middleware(function ($request, $next) {
$this->user_info=Auth::user(); // returns user
return $next($request);
});
}
}
Almabek