Attempting.php
TLDR
The Attempting.php
file is a part of the Illuminate\Auth\Events
namespace in the Demo Projects project. It defines the Attempting
class, which is used to represent an authentication attempt event.
Classes
Attempting
The Attempting
class represents an authentication attempt event. It has the following properties:
-
$guard
(string): The authentication guard name. -
$credentials
(array): The credentials for the user. -
$remember
(bool): Indicates if the user should be "remembered".
The class has the following methods:
-
__construct($guard, $credentials, $remember)
: This method is the constructor of theAttempting
class. It sets the values of the$guard
,$credentials
, and$remember
properties.
<?php
namespace Illuminate\Auth\Events;
class Attempting
{
/**
* The authentication guard name.
*
* @var string
*/
public $guard;
/**
* The credentials for the user.
*
* @var array
*/
public $credentials;
/**
* Indicates if the user should be "remembered".
*
* @var bool
*/
public $remember;
/**
* Create a new event instance.
*
* @param string $guard
* @param array $credentials
* @param bool $remember
* @return void
*/
public function __construct($guard, $credentials, $remember)
{
$this->guard = $guard;
$this->remember = $remember;
$this->credentials = $credentials;
}
}