PHP Class Ts\Models\ChannelCategory

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

Protected Properties

Property Type Description
$fillable array 表字段
$primaryKey string 表主见
$softDelete boolean 设置是否开启软删除
$table string 表名称

Public Methods

Method Description
channels ( ) : Illuminate\Database\Eloquent\Relations\HasMany 频道下的数据
follows ( ) : Illuminate\Database\Eloquent\Relations\HasMany 频道粉丝数据

Method Details

channels() public method

频道下的数据
Author: Seven Du ([email protected])
public channels ( ) : Illuminate\Database\Eloquent\Relations\HasMany
return Illuminate\Database\Eloquent\Relations\HasMany

follows() public method

频道粉丝数据
Author: Seven Du ([email protected])
public follows ( ) : Illuminate\Database\Eloquent\Relations\HasMany
return Illuminate\Database\Eloquent\Relations\HasMany

Property Details

$fillable protected property

表字段
protected array $fillable
return array

$primaryKey protected property

表主见
protected string $primaryKey
return string

$softDelete protected property

设置是否开启软删除
protected bool $softDelete
return boolean

$table protected property

表名称
protected string $table
return string