master

laravel/framework

Last updated at: 29/12/2023 09:20

Verified.php

TLDR

The Verified.php file contains the Verified class definition, which is an event class used in the Illuminate\Auth\Events namespace. This event class is responsible for representing the event when a user's email is verified.

Classes

Class: Verified

The Verified class is an event class that represents the event when a user's email is verified. It is located in the Illuminate\Auth\Events namespace.

The class has the following properties:

  • $user: Represents the verified user. It is an instance of the Illuminate\Contracts\Auth\MustVerifyEmail interface.

The class has one constructor method:

__construct($user)

Creates a new instance of the Verified class.

  • Parameters:
    • $user: An instance of the Illuminate\Contracts\Auth\MustVerifyEmail interface, representing the verified user.

Methods

There are no methods defined in this file.

<?php

namespace Illuminate\Auth\Events;

use Illuminate\Queue\SerializesModels;

class Verified
{
    use SerializesModels;

    /**
     * The verified user.
     *
     * @var \Illuminate\Contracts\Auth\MustVerifyEmail
     */
    public $user;

    /**
     * Create a new event instance.
     *
     * @param  \Illuminate\Contracts\Auth\MustVerifyEmail  $user
     * @return void
     */
    public function __construct($user)
    {
        $this->user = $user;
    }
}