Laravel 10 Auth::user() – Attempt to read property on null
All i am trying to do is make a middleware where only user with role_id = 1 can access the dashboard. Now keep in mind i didn't use laravel/breeze, instead i used laravel/ui auth Here is my checkRole middleware: public…