How to create custom filament page that is accessible to guests?

I created a new page using the create page command but when I access it browser redirects to login page. How can I prevent this and get the page rendered so guests can access without need to login?
4 Replies
Samir
Samir13mo ago
Hi, one way to do it by defining the route in web.php. If your custom page class is Advertisement.
Route::get('/advertisements', Advertisements::class);
Route::get('/advertisements', Advertisements::class);
Please understand Filament custom pages are full-page livewire pages wrapped with additional Filament features. By default, you will see a side panel even in public (guest) view.
damms005
damms005OP13mo ago
It's paid access so not useful for me; but thank you. I really appreciate I tried that already doesn't work. Gave some resource error. I'll send the error in a minute Oh. It wasn't working before when I tried it previously because I extended Filament\Resources\Pages\Page instead of Filament\Pages\Page. Thanks!
Proculair B.V.
Proculair B.V.12mo ago
This one is free, you might need to have an account.
Want results from more Discord servers?
Add your server