How to Call a boot method only after email is verified in laravel

  laravel, laravel-8, php

i want to be able to call a boot method like the one shown below only after user has verified email.

protected static function boot()
    {
        parent::boot();

        static::created(function ($project) {
            // create row in another table
        });

    }

i want to insert a new row into another table only after user has verified email. so is there any method that can make this happen.

Source: Laravel

Leave a Reply