Skip to content
Discussion options

You must be logged in to vote

To customize the registration logic, you can create your own Register class by extending the default one:

use Filament\Http\Responses\Auth\Contracts\RegistrationResponse;

class Register extends \Filament\Pages\Auth\Register
{
    public function register(): ?RegistrationResponse
    {
        // customize the registration logic
    }
}

Then, register your custom class in your panel provider:

return $panel
    ...
    ->registration(Register::class)

If you only need to hook into specific parts of the registration process, you can use methods like afterValidate, beforeRegister, and afterRegister.

Check the code here

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@DevMike13
Comment options

Answer selected by DevMike13
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants