\App\ModelsUser

Summary

Methods
Properties
Constants
bindSchool()
unbindSchool()
favorite()
schools()
favorites()
orders()
childs()
No public properties found
CREATED_AT
UPDATED_AT
No protected methods found
$table
$guarded
N/A
No private methods found
No private properties found
N/A

Constants

CREATED_AT

CREATED_AT = 'add_time'

UPDATED_AT

UPDATED_AT = 'update_time'

Properties

$table

$table : string

表名

Type

string

$guarded

$guarded : 

Type

Methods

bindSchool()

bindSchool(\App\Models\[type]  $user_id, \App\Models\[type]  $school_id,   $type = 1) : \App\Models\[type]

绑定学校

Parameters

\App\Models\[type] $user_id

[description]

\App\Models\[type] $school_id

[description]

$type

Returns

\App\Models\[type] —

[description]

unbindSchool()

unbindSchool(\App\Models\[type]  $user_id, \App\Models\[type]  $school_id,   $type = 1) : \App\Models\[type]

解除绑定学校

Parameters

\App\Models\[type] $user_id

[description]

\App\Models\[type] $school_id

[description]

$type

Returns

\App\Models\[type] —

[description]

favorite()

favorite() : \App\Models\[type]

收藏/喜爱的课程

Returns

\App\Models\[type] —

[description]

schools()

schools() : \App\Models\[type]

[schools description]

Returns

\App\Models\[type] —

[description]

favorites()

favorites() : \App\Models\[type]

[favorites description]

Returns

\App\Models\[type] —

[description]

orders()

orders() : \App\Models\[type]

订单

Returns

\App\Models\[type] —

[description]

childs()

childs() : \App\Models\[type]

孩子

Returns

\App\Models\[type] —

[description]