Kravock
Kravock
FFilament
Created by Kravock on 1/23/2024 in #❓┊help
Combination of authenticated/unauthenticated routes in a panel
I think I figured it out actually. Just need to add the Authenticate route to a $routeMiddleware property on the page. And then in the canAccess return false if there is no user to hide the page from menus for no logged in users
protected static string | array $routeMiddleware = [
Authenticate::class
];
protected static string | array $routeMiddleware = [
Authenticate::class
];
3 replies