User.php
TLDR
This file defines the User
class, which extends the Model
class and implements several authentication contracts.
Classes
User
The User
class extends the Model
class and implements the AuthenticatableContract
, AuthorizableContract
, and CanResetPasswordContract
contracts. It also uses the traits Authenticatable
, Authorizable
, CanResetPassword
, and MustVerifyEmail
.
<?php
namespace Illuminate\Foundation\Auth;
use Illuminate\Auth\Authenticatable;
use Illuminate\Auth\MustVerifyEmail;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\Access\Authorizable;
class User extends Model implements
AuthenticatableContract,
AuthorizableContract,
CanResetPasswordContract
{
use Authenticatable, Authorizable, CanResetPassword, MustVerifyEmail;
}