Registered.php
TLDR
The file Registered.php
is located in the Illuminate\Auth\Events
namespace and contains a class named Registered
. This class represents the event that is fired when a user is registered and holds the newly registered user as a property.
Classes
Registered
This class represents the event that is fired when a user is registered.
-
Properties:
-
user
: The authenticated user. (Type:\Illuminate\Contracts\Auth\Authenticatable
)
-
-
Methods:
-
__construct($user)
: Creates a new instance of theRegistered
event class. Accepts the newly registered user as a parameter.
-
<?php
namespace Illuminate\Auth\Events;
use Illuminate\Queue\SerializesModels;
class Registered
{
use SerializesModels;
/**
* The authenticated user.
*
* @var \Illuminate\Contracts\Auth\Authenticatable
*/
public $user;
/**
* Create a new event instance.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @return void
*/
public function __construct($user)
{
$this->user = $user;
}
}