PHP Class Corcel\User

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

Protected Properties

Property Type Description
$appends array The accessors to append to the model's array form.
$dates
$hidden
$primaryKey
$table
$with

Public Methods

Method 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 method

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

comments() public method

Comments relationship.
public comments ( ) : Illuminate\Database\Eloquent\Collection
return Illuminate\Database\Eloquent\Collection

fields() public method

public fields ( )

getAuthIdentifier() public method

Get the unique identifier for the user.
public getAuthIdentifier ( ) : mixed
return mixed

getAuthIdentifierName() public method

Get the name of the unique identifier for the user.
public getAuthIdentifierName ( ) : string
return string

getAuthPassword() public method

Get the password for the user.
public getAuthPassword ( ) : string
return string

getCreatedAtAttribute() public method

Get created at attribute.
public getCreatedAtAttribute ( ) : date
return date

getEmailAttribute() public method

Get email attribute.
public getEmailAttribute ( ) : string
return string

getEmailForPasswordReset() public method

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

getFirstNameAttribute() public method

Get first name attribute.
public getFirstNameAttribute ( ) : string
return string

getLastNameAttribute() public method

Get last name attribute.
public getLastNameAttribute ( ) : string
return string

getLoginAttribute() public method

Get login attribute.
public getLoginAttribute ( ) : string
return string

getNicknameAttribute() public method

Get nickname attribute.
public getNicknameAttribute ( ) : string
return string

getRememberToken() public method

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

getRememberTokenName() public method

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

getSlugAttribute() public method

Get slug attribute.
public getSlugAttribute ( ) : string
return string

getUrlAttribute() public method

Get url attribute.
public getUrlAttribute ( ) : string
return string

meta() public method

Meta data relationship.
public meta ( ) : Corcel\UserMetaCollection
return Corcel\UserMetaCollection

newQuery() public method

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

posts() public method

Posts relationship.
public posts ( ) : Corcel\PostMetaCollection
return Corcel\PostMetaCollection

save() public method

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

sendPasswordResetNotification() public method

public sendPasswordResetNotification ( string $token )
$token string

setRememberToken() public method

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

setUpdatedAtAttribute() public method

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
return 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