#Register page outside the panels

14 messages · Page 1 of 1 (latest)

swift condor
#

Hi, I have a problem with register my custom page outside the panels and always got this error:

Unable to find component: [app.filament.livewire.pages.registration-request-page]

If I insert page into ->pages() property in one of my panels it work just fine, but then I've got this:

Method App\Filament\Livewire\Pages\RegistrationRequestPage::registerNavigationItems does not exist.

From this I deduce that I'm registering the page wrong, but I don't know where I should have added it when it's outside the panels.
The page is similar to the registration page only it is for a different model so I used a custom page.

ornate topazBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

swift condor
#

Register page outside the panels

valid lotus
swift condor
#

I made my own SimplePage.

class RegistrationRequestPage extends SimplePage implements HasForms

It is customized copy of Login or Register.

valid lotus
swift condor
#

I was thinking about something like..login and registration page has be somewhere registered as well. Cause they works, but can't find where or if they really are.

valid lotus
swift condor
#

Yes I have this in my web.php

Route::get('registration-request', RegistrationRequestPage::class)->name('registration-request');

It's even weirder than it seems, I completely forgot to write that it loads the page, loads the form and everything is fine, I get the error only when I try to submit the form or after some time..that means that it's not looking for the component as the view but the component as the class.

#

And as I said earlier when I register RegistrationRequestPage::class into AdminPanelProvider .. ->pages() it works, but panel load failed after login

valid lotus
swift condor
#

I'm trying to keep this page outside the panel, it was just debugging ideas.

sage cairn