Laravel Controller Constructor Auth pengguna 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