I am using laravel 5.
I have added RootNeedsPermission in my root. At the same time I am using middleware auth function to login if the user is logged in. But RootNeedsPermission runs first before the middleware auth function. So I cannot track correctly if the user is logged in. When I login using admin permission it shows as I dont have permission.
I am using laravel 5. I have added RootNeedsPermission in my root. At the same time I am using middleware auth function to login if the user is logged in. But RootNeedsPermission runs first before the middleware auth function. So I cannot track correctly if the user is logged in. When I login using admin permission it shows as I dont have permission.