Laravel Controller Constructor Auther 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