Filament Register Redirect
I currently have a custom registration page where users are automatically logged in but directed to the wrong panel. Can we redirect them to the correct panel (/customer)?
<?php
namespace App\Http\Responses;
use Filament\Http\Responses\Auth\RegistrationResponse;
use Illuminate\Http\RedirectResponse;
use Livewire\Features\SupportRedirects\Redirector;
class CustomerRegisterResponse extends RegistrationResponse
{
public function toResponse($request): RedirectResponse|Redirector
{
return redirect()->route(''); // Replace with the route you want to redirect to.
}
}