Public livewire page in custom plugin
Hi, i'm making a custom plugin, this plugin is registered in the AdminPanel
I need to have a full livewire page outside the panels, accessible to everyone
the page in the end show a filament form, at the moment i have a livewire error Unable to find component: [register-tenant]
route
controller
the view
the call to the livewire component cause
problem is HERE! this file is never called
in src/Http/Livewire
the boot function in the plugin service provider
Solution:Jump to solution
i've found the solution this morning, wrong declaration
this is right use Base33\BossOnboarding\Http\Livewire\RegisterTenant;
but this use Base33\BossOnboarding\RegisterTenant; doesn't throw errors...
2 Replies
Hi! It seems the issue is related to your Livewire component registration.
- First, are you using the correct use statement for your component in the boot() method of your service provider?
- It might also be a cache issue. Try running:
php artisan cache:clear
- Also, your service provider might only be loaded inside the Filament panel context, not in the public frontend. That depends on how you've registered it in your plugin's composer.json. Could you share the relevant part of your composer.json to confirm that?Solution
i've found the solution this morning, wrong declaration
this is right use Base33\BossOnboarding\Http\Livewire\RegisterTenant;
but this use Base33\BossOnboarding\RegisterTenant; doesn't throw errors