Issue when creating a custom page
i get this error after setting up a custom page
and here is my code
use Filament\Resources\Pages\Page;
use App\Filament\Resources\UserResource;
class UserDashboard extends Page
{
protected static string $resource = UserResource::class;
protected static ?string $navigationGroup = 'Manage Users';
protected static string $view = 'filament.resources.user-resource.pages.user-dashboard';
}
and my blade file
<x-filament::page>
<p> hello </p>
</x-filament::page>
in my AppService Provider i have this
Filament::registerNavigationItems([
NavigationItem::make('Analytics')
->url(UserResource::getUrl('dashboard')
)
->icon('heroicon-o-presentation-chart-line')
->activeIcon('heroicon-s-presentation-chart-line')
->group('Manage Users')
->sort(2),
]);
currently now clicking on this link returns 404
and here is my code
use Filament\Resources\Pages\Page;
use App\Filament\Resources\UserResource;
class UserDashboard extends Page
{
protected static string $resource = UserResource::class;
protected static ?string $navigationGroup = 'Manage Users';
protected static string $view = 'filament.resources.user-resource.pages.user-dashboard';
}
and my blade file
<x-filament::page>
<p> hello </p>
</x-filament::page>
in my AppService Provider i have this
Filament::registerNavigationItems([
NavigationItem::make('Analytics')
->url(UserResource::getUrl('dashboard')
)
->icon('heroicon-o-presentation-chart-line')
->activeIcon('heroicon-s-presentation-chart-line')
->group('Manage Users')
->sort(2),
]);
currently now clicking on this link returns 404

