© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
harps

404 create page

I've just added a create route to a resource and I'm getting a 404, If iI remove the create key from the array then the modal works fine. I have other resources that work ok by adding and removing the create key it toggles modal on and off but not this specific resource. Have I missed something for this resource?

    public static function getPages(): array
    {
        return [
            'index' => Pages\ListProjects::route('/'),
            'view' => Pages\ViewProject::route('/{record}'),
            'create' => Pages\CreateProject::route('/create'),
        ];
    }
    public static function getPages(): array
    {
        return [
            'index' => Pages\ListProjects::route('/'),
            'view' => Pages\ViewProject::route('/{record}'),
            'create' => Pages\CreateProject::route('/create'),
        ];
    }


Uaing xdebug and puasing exceptions I get the following errors.

"File does not exist at path /app/storage/framework/cache/data/47/e0/47e0354a704ca2aab47ed06ea898849d8a435dfe."
"File does not exist at path /app/storage/framework/cache/data/47/e0/47e0354a704ca2aab47ed06ea898849d8a435dfe."


"No query results for model [App\Models\Project] create"
"No query results for model [App\Models\Project] create"


I have other models / resources that are working, I can't work out why this one is different.
Solution
Order matters. Your
create
create
route should be defined before
view
view
otherwise it's looking for a record with ID
create
create
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

Custom properties on Create Page causes 404
FilamentFFilament / ❓┊help
3y ago
New Custom Page 404
FilamentFFilament / ❓┊help
2y ago
404 error on create
FilamentFFilament / ❓┊help
2y ago
Filament Simple Page Route Returning 404
FilamentFFilament / ❓┊help
2y ago