PHP Class app\models\Image

Inheritance: extends Markzero\Mvc\AppModel
Mostra 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
category ( ) Get the category that owns the news.
user ( ) : BelongsToMany The one-to-many relationship between image and users.

Method Details

category() public method

The one-to-one relationship between news and category.
public category ( )

user() public method

The one-to-many relationship between image and users.
public user ( ) : BelongsToMany
return BelongsToMany

Property Details

$fillable protected_oe property

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

$hidden protected_oe property

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

$table protected_oe property

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