PHP Class Learner\Models\User

Inheritance: extends Illuminate\Foundation\Auth\User, use trait Illuminate\Database\Eloquent\SoftDeletes, use trait Zizaco\Entrust\Traits\EntrustUserTrait
Mostra file Open project: RryLee/learner.video Class Usage Examples

Protected Properties

Property Type Description
$casts array Format the output.
$dates array The attributes that should be mutated to dates.
$fillable array The attributes that are mass assignable.
$hidden array The attributes excluded from the model's JSON form.

Public Methods

Method Description
displayName ( ) : string Display user's nickname, if not exist display username.
isNotActive ( ) : boolean Whether the user is not active.
relations ( ) Eager load relations on the model.

Method Details

displayName() public method

Display user's nickname, if not exist display username.
public displayName ( ) : string
return string

isNotActive() public method

Whether the user is not active.
public isNotActive ( ) : boolean
return boolean

relations() public method

Eager load relations on the model.
public relations ( )

Property Details

$casts protected_oe property

Format the output.
protected array $casts
return array

$dates protected_oe property

The attributes that should be mutated to dates.
protected array $dates
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