PHP Class Ts\Models\User

Author: Seven Du ([email protected])
Inheritance: extends Ts\Bases\Model
Mostrar archivo Open project: medz/thinksns-4 Class Usage Examples

Protected Properties

Property Type Description
$hidden
$instances
$primaryKey
$softDelete
$table

Public Methods

Method Description
checkPassword ( $password )
getIntroAttribute ( $intro )
getSearchKeyAttribute ( $key )
getUnameAttribute ( $username )
scopeAudit ( Illuminate\Database\Eloquent\Builder $query ) : Illuminate\Database\Eloquent\Builder 复用的以审核通过的用户范围.
scopeByEmail ( $query, $email )
scopeByPhone ( $query, $phone )
scopeByUid ( $query, $uid )
scopeByUserName ( $query, $username )
scopeExistent ( Illuminate\Database\Eloquent\Builder $query ) : Illuminate\Database\Eloquent\Builder 复用的存在用户范围.
setFirstLetterAttribute ( $firstLetter )
setIntroAttribute ( $intro )
setPasswordAttribute ( $password )
setSearchKeyAttribute ( $key )
setUnameAttribute ( $username )

Method Details

checkPassword() public method

public checkPassword ( $password )

getIntroAttribute() public method

public getIntroAttribute ( $intro )

getSearchKeyAttribute() public method

public getSearchKeyAttribute ( $key )

getUnameAttribute() public method

public getUnameAttribute ( $username )

scopeAudit() public method

复用的以审核通过的用户范围.
Author: Seven Du ([email protected])
public scopeAudit ( Illuminate\Database\Eloquent\Builder $query ) : Illuminate\Database\Eloquent\Builder
$query Illuminate\Database\Eloquent\Builder 查询器
return Illuminate\Database\Eloquent\Builder 查询器

scopeByEmail() public method

public scopeByEmail ( $query, $email )

scopeByPhone() public method

public scopeByPhone ( $query, $phone )

scopeByUid() public method

public scopeByUid ( $query, $uid )

scopeByUserName() public method

public scopeByUserName ( $query, $username )

scopeExistent() public method

复用的存在用户范围.
Author: Seven Du ([email protected])
public scopeExistent ( Illuminate\Database\Eloquent\Builder $query ) : Illuminate\Database\Eloquent\Builder
$query Illuminate\Database\Eloquent\Builder 查询器
return Illuminate\Database\Eloquent\Builder 查询器

setFirstLetterAttribute() public method

public setFirstLetterAttribute ( $firstLetter )

setIntroAttribute() public method

public setIntroAttribute ( $intro )

setPasswordAttribute() public method

public setPasswordAttribute ( $password )

setSearchKeyAttribute() public method

public setSearchKeyAttribute ( $key )

setUnameAttribute() public method

public setUnameAttribute ( $username )

Property Details

$hidden protected_oe property

protected $hidden

$instances protected_oe static_oe property

protected static $instances

$primaryKey protected_oe property

protected $primaryKey

$softDelete protected_oe property

protected $softDelete

$table protected_oe property

protected $table