PHP Class App\Services\Auth\Back\User

Inheritance: extends App\Services\Auth\User
Show file Open project: spatie-custom/blender Class Usage Examples

Protected Properties

Property Type Description
$table

Public Methods

Method Description
activate ( ) : User
delete ( )
getHomeUrl ( ) : string
getProfileUrl ( ) : string
getRoleAttribute ( ) : UserRole
getStatusAttribute ( ) : App\Services\Auth\Back\Enums\UserStatus
guardDriver ( ) : string
hasRole ( UserRole $role ) : boolean
hasStatus ( App\Services\Auth\Back\Enums\UserStatus $status ) : boolean
isActive ( ) : boolean
sendPasswordResetNotification ( string $token ) Send the password reset notification.
setRoleAttribute ( UserRole $role )
setStatusAttribute ( App\Services\Auth\Back\Enums\UserStatus $status )

Method Details

activate() public method

public activate ( ) : User
return User

delete() public method

public delete ( )

getHomeUrl() public method

public getHomeUrl ( ) : string
return string

getProfileUrl() public method

public getProfileUrl ( ) : string
return string

getRoleAttribute() public method

public getRoleAttribute ( ) : UserRole
return App\Services\Auth\Back\Enums\UserRole

getStatusAttribute() public method

public getStatusAttribute ( ) : App\Services\Auth\Back\Enums\UserStatus
return App\Services\Auth\Back\Enums\UserStatus

guardDriver() public method

public guardDriver ( ) : string
return string

hasRole() public method

public hasRole ( UserRole $role ) : boolean
$role App\Services\Auth\Back\Enums\UserRole
return boolean

hasStatus() public method

public hasStatus ( App\Services\Auth\Back\Enums\UserStatus $status ) : boolean
$status App\Services\Auth\Back\Enums\UserStatus
return boolean

isActive() public method

public isActive ( ) : boolean
return boolean

sendPasswordResetNotification() public method

Send the password reset notification.
public sendPasswordResetNotification ( string $token )
$token string

setRoleAttribute() public method

public setRoleAttribute ( UserRole $role )
$role App\Services\Auth\Back\Enums\UserRole

setStatusAttribute() public method

public setStatusAttribute ( App\Services\Auth\Back\Enums\UserStatus $status )
$status App\Services\Auth\Back\Enums\UserStatus

Property Details

$table protected property

protected $table