Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

garrys07's avatar

How to enable Email verification for new users in Spark ?

Hi

Any suggestions, how can i enable email verifications for new uses in Spark, As per documentation i have added this functionality in register() method ?

public function register()
    {
        parent::register();
        Spark::ensureEmailIsVerified();
    }

Also i have added these lines to User.php as suggested

https://spark.laravel.com/docs/10.0/email-verification

namespace App;

use Illuminate\Contracts\Auth\MustVerifyEmail;

use Laravel\Spark\User as SparkUser;


class User extends SparkUser implements MustVerifyEmail
{

....

}

Any Suggestions ?

Thanks

0 likes
0 replies

Please or to participate in this conversation.