Full screen page with form
Hi i need to build full page form but if i use Custom page the user must login and if i use form packge alone the output is not the same as the form in panels can anyone help?
6 Replies
make a public panel by removing the authmiddleware
and register your page there
i give the error the login is not found
you need a second panel i guess with ->login()
havent tried your approach yet
code: return $panel
->id('public')
->path('')
->colors([
'primary' => Color::Amber,
])
->discoverResources(in: app_path('Filament/Public/Resources'), for: 'App\Filament\Public\Resources')
->discoverPages(in: app_path('Filament/Public/Pages'), for: 'App\Filament\Public\Pages')
->pages([
Register::class,
])
->discoverWidgets(in: app_path('Filament/Public/Widgets'), for: 'App\Filament\Public\Widgets')
->widgets([
// Widgets\AccountWidget::class,
// Widgets\FilamentInfoWidget::class,
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
// Authenticate::class,
]);
i get this message localhost redirected you too many times.
and if i uncomment Authenticate Route [login] not defined.
do you have any solution ?
This will guide you through the steps of making a panel w/o authntication.
NOTE: Filament was built with authentication in mind, so not doing it might cause issues down the road. So be careful
https://filamentphp.com/docs/3.x/panels/users#setting-up-guest-access-to-a-panel
if you want to sign up. rey the custom registration page on the doc