PHP Class app\models\NewsCategory

Inheritance: extends yii\db\ActiveRecord
Show file Open project: qloog/laravel5-backend Class Usage Examples

Protected Properties

Property Type Description
$fillable array The attributes that are mass assignable.
$hidden array The attributes excluded from the model's JSON form.
$table string The table associated with the model.

Public Methods

Method Description
news ( ) Get the news for the blog category.

Method Details

news() public method

Get the news for the blog category.
public news ( )

Property Details

$fillable protected property

The attributes that are mass assignable.
protected array $fillable
return array

$hidden protected property

The attributes excluded from the model's JSON form.
protected array $hidden
return array

$table protected property

The table associated with the model.
protected string $table
return string