PHP Class Domain\Auth\AuthService

Inheritance: implements Domain\Auth\Contracts\AuthService
Show file Open project: resultsystems/school Class Usage Examples

Public Methods

Method Description
byCredentials ( array $credentials, string $type ) : array
login ( Illuminate\Contracts\Auth\Authenticatable $user, boolean $remember = false ) : array
logout ( $token = null ) : boolean

Private Methods

Method Description
getUser ( string $token ) : array Get user authenticate.

Method Details

byCredentials() public method

public byCredentials ( array $credentials, string $type ) : array
$credentials array
$type string
return array

login() public method

public login ( Illuminate\Contracts\Auth\Authenticatable $user, boolean $remember = false ) : array
$user Illuminate\Contracts\Auth\Authenticatable
$remember boolean
return array

logout() public method

public logout ( $token = null ) : boolean
return boolean