Implementing Role-Based Access Control for Custom Pages on Filament
Hello! How are you? I'm trying to define a specific middleware to access a custom page on Filament. How could I make it so that only, for example, those with the 'teacher' role can access a custom page? Is there a function I can put in page.php?