PHP Class Corcel\User

Inheritance: extends Model, implements Illuminate\Contracts\Auth\Authenticatable, implements Illuminate\Contracts\Auth\CanResetPassword
Afficher le fichier Open project: jgrossi/corcel Class Usage Examples

Protected Properties

Свойство Type Description
$appends array The accessors to append to the model's array form.
$dates
$hidden
$primaryKey
$table
$with

Méthodes publiques

Méthode Description
__get ( string $key ) : string Magic method to return the meta data like the user original fields.
comments ( ) : Illuminate\Database\Eloquent\Collection Comments relationship.
fields ( )
getAuthIdentifier ( ) : mixed Get the unique identifier for the user.
getAuthIdentifierName ( ) : string Get the name of the unique identifier for the user.
getAuthPassword ( ) : string Get the password for the user.
getCreatedAtAttribute ( ) : date Get created at attribute.
getEmailAttribute ( ) : string Get email attribute.
getEmailForPasswordReset ( ) : string Get the e-mail address where password reset links are sent.
getFirstNameAttribute ( ) : string Get first name attribute.
getLastNameAttribute ( ) : string Get last name attribute.
getLoginAttribute ( ) : string Get login attribute.
getNicknameAttribute ( ) : string Get nickname attribute.
getRememberToken ( ) : string Get the token value for the "remember me" session.
getRememberTokenName ( ) : string Get the column name for the "remember me" token.
getSlugAttribute ( ) : string Get slug attribute.
getUrlAttribute ( ) : string Get url attribute.
meta ( ) : Corcel\UserMetaCollection Meta data relationship.
newQuery ( ) : Corcel\UserBuilder Overriding newQuery() to the custom UserBuilder with some interesting methods.
posts ( ) : Corcel\PostMetaCollection Posts relationship.
save ( array $options = [] )
sendPasswordResetNotification ( string $token )
setRememberToken ( string $value ) : void Set the token value for the "remember me" session.
setUpdatedAtAttribute ( $value ) Disable updated_at

Method Details

__get() public méthode

Magic method to return the meta data like the user original fields.
public __get ( string $key ) : string
$key string
Résultat string

comments() public méthode

Comments relationship.
public comments ( ) : Illuminate\Database\Eloquent\Collection
Résultat Illuminate\Database\Eloquent\Collection

fields() public méthode

public fields ( )

getAuthIdentifier() public méthode

Get the unique identifier for the user.
public getAuthIdentifier ( ) : mixed
Résultat mixed

getAuthIdentifierName() public méthode

Get the name of the unique identifier for the user.
public getAuthIdentifierName ( ) : string
Résultat string

getAuthPassword() public méthode

Get the password for the user.
public getAuthPassword ( ) : string
Résultat string

getCreatedAtAttribute() public méthode

Get created at attribute.
public getCreatedAtAttribute ( ) : date
Résultat date

getEmailAttribute() public méthode

Get email attribute.
public getEmailAttribute ( ) : string
Résultat string

getEmailForPasswordReset() public méthode

Get the e-mail address where password reset links are sent.
public getEmailForPasswordReset ( ) : string
Résultat string

getFirstNameAttribute() public méthode

Get first name attribute.
public getFirstNameAttribute ( ) : string
Résultat string

getLastNameAttribute() public méthode

Get last name attribute.
public getLastNameAttribute ( ) : string
Résultat string

getLoginAttribute() public méthode

Get login attribute.
public getLoginAttribute ( ) : string
Résultat string

getNicknameAttribute() public méthode

Get nickname attribute.
public getNicknameAttribute ( ) : string
Résultat string

getRememberToken() public méthode

Get the token value for the "remember me" session.
public getRememberToken ( ) : string
Résultat string

getRememberTokenName() public méthode

Get the column name for the "remember me" token.
public getRememberTokenName ( ) : string
Résultat string

getSlugAttribute() public méthode

Get slug attribute.
public getSlugAttribute ( ) : string
Résultat string

getUrlAttribute() public méthode

Get url attribute.
public getUrlAttribute ( ) : string
Résultat string

meta() public méthode

Meta data relationship.
public meta ( ) : Corcel\UserMetaCollection
Résultat Corcel\UserMetaCollection

newQuery() public méthode

Overriding newQuery() to the custom UserBuilder with some interesting methods.
public newQuery ( ) : Corcel\UserBuilder
Résultat Corcel\UserBuilder

posts() public méthode

Posts relationship.
public posts ( ) : Corcel\PostMetaCollection
Résultat Corcel\PostMetaCollection

save() public méthode

public save ( array $options = [] )
$options array

sendPasswordResetNotification() public méthode

public sendPasswordResetNotification ( string $token )
$token string

setRememberToken() public méthode

Set the token value for the "remember me" session.
public setRememberToken ( string $value ) : void
$value string
Résultat void

setUpdatedAtAttribute() public méthode

Disable updated_at
public setUpdatedAtAttribute ( $value )

Property Details

$appends protected_oe property

The accessors to append to the model's array form.
protected array $appends
Résultat array

$dates protected_oe property

protected $dates

$hidden protected_oe property

protected $hidden

$primaryKey protected_oe property

protected $primaryKey

$table protected_oe property

protected $table

$with protected_oe property

protected $with