Cristina
Got error "Unable to find component" when click an action in relation page
After many hours debug, i find the problem, it is the problem of cache, so i do use php artisan filament:optimize-clear and then php artisan icons:cache for cache icons again, the laravel clear cache not helping for this problem
4 replies
Laravel Echo cannot be found on custom page in filament
i notice that your errore said "echo.js?v=3.2.116.0:2 Uncaught You must pass your app key when you instantiate Pusher." do you use pusher? if so, in your .env i see you set REVERB_APP_ID, but you should set PUSHER_APP_ID
15 replies
Laravel Echo cannot be found on custom page in filament
the doc said that dot is needed for custom event name if you broadcast a event name different from you event class name, although in my case i used the same name but i also need to add the dot to let it work
15 replies
Laravel Echo cannot be found on custom page in filament
I guess that you have done "npm run build", in case no, you can call that first. And in my custom filament page, i use this to listen the channel event, public function getListeners()
{
return [
"echo:private-channel-name,.EventName" => 'someFunction',
];
} if your channel is private, do use echo:private-channel-name, i tried followed livewire doc using echo-private:channel-name, it did not work for me, and do use the dot before the EventName, in case not working in your event add public function broadcastAs()
{
return 'EventName';
}. hope this helps
15 replies
How have EditPage works both as modal and a page
Thanks for your suggestion, in fact i did it in that way, but it is annoying to handle some relationship and some filed, and also i have to manage the save/delete/cancel actions, i think it is just a waste not to use the native filament edit modal
19 replies