PHP Class REBELinBLUE\Deployer\User

Inheritance: extends Illuminate\Database\Eloquent\Model, implements Illuminate\Contracts\Auth\Authenticatable, implements Illuminate\Contracts\Auth\Access\Authorizable, implements Illuminate\Contracts\Auth\CanResetPassword, implements Robbo\Presenter\PresentableInterface, use trait Illuminate\Auth\Authenticatable, use trait Illuminate\Auth\Passwords\CanResetPassword, use trait Illuminate\Foundation\Auth\Access\Authorizable, use trait Illuminate\Database\Eloquent\SoftDeletes, use trait REBELinBLUE\Deployer\Traits\BroadcastChanges
Datei anzeigen Open project: rebelinblue/deployer Class Usage Examples

Protected Properties

Property Type Description
$appends array Additional attributes to include in the JSON representation.
$casts array The attributes that should be casted to native types.
$fillable array The attributes that are mass assignable.
$hidden array The attributes excluded from the model's JSON form.

Public Methods

Method Description
__get ( string $key ) : mixed A hack to allow avatar_url to be called on the result of Auth::user().
getHasTwoFactorAuthenticationAttribute ( ) : boolean Determines whether the user has Google 2FA enabled.
getPresenter ( ) : UserPresenter Gets the view presenter.
requestEmailToken ( ) : string Generate a change email token.

Method Details

__get() public method

A hack to allow avatar_url to be called on the result of Auth::user().
public __get ( string $key ) : mixed
$key string
return mixed

getHasTwoFactorAuthenticationAttribute() public method

Determines whether the user has Google 2FA enabled.

getPresenter() public method

Gets the view presenter.
public getPresenter ( ) : UserPresenter
return REBELinBLUE\Deployer\Presenters\UserPresenter

requestEmailToken() public method

Generate a change email token.
public requestEmailToken ( ) : string
return string

Property Details

$appends protected_oe property

Additional attributes to include in the JSON representation.
protected array $appends
return array

$casts protected_oe property

The attributes that should be casted to native types.
protected array $casts
return array

$fillable protected_oe property

The attributes that are mass assignable.
protected array $fillable
return array

$hidden protected_oe property

The attributes excluded from the model's JSON form.
protected array $hidden
return array