© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
21 replies
aacarrion4

Custom button for a form

Hi, I created a custom button to create records in another way, the problem is that people who are not logged in can enter this path, how can I hide this path for people who are not logged in?

public static function getPages(): array
    {
        return [
            'index' => Pages\ListAcademicComponents::route('/'),
            'createform' => Pages\FormAcademicComponent::route('/form'),
            //'create' => Pages\CreateAcademicComponent::route('/create'),
            //'edit' => Pages\EditAcademicComponent::route('/{record}/edit'),
        ];
    }
public static function getPages(): array
    {
        return [
            'index' => Pages\ListAcademicComponents::route('/'),
            'createform' => Pages\FormAcademicComponent::route('/form'),
            //'create' => Pages\CreateAcademicComponent::route('/create'),
            //'edit' => Pages\EditAcademicComponent::route('/{record}/edit'),
        ];
    }
image.png
Solution
But the route you showed is
/form-academic-component
/form-academic-component
not
/dashboard/academic-components
/dashboard/academic-components
?!
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Clear Button in custom form
FilamentFFilament / ❓┊help
2y ago
Adding custom form action button
FilamentFFilament / ❓┊help
3y ago
Custom card Radio Button form field
FilamentFFilament / ❓┊help
3y ago
Button within a Form
FilamentFFilament / ❓┊help
3y ago