PHP Class app\models\Post

Inheritance: extends Illuminate\Database\Eloquent\Model
Afficher le fichier Open project: forehalo/materialize-blog Class Usage Examples

Protected Properties

Свойство Type Description
$fillable
$table string Table name

Méthodes publiques

Méthode Description
category ( ) : BelongsTo One to many relation.
comments ( ) : Illuminate\Database\Eloquent\Relations\HasMany One to many relation.
tags ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany Many to many relation.

Method Details

category() public méthode

One to many relation.
public category ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

comments() public méthode

One to many relation.
public comments ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

tags() public méthode

Many to many relation.
public tags ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
Résultat Illuminate\Database\Eloquent\Relations\BelongsToMany

Property Details

$fillable protected_oe property

protected $fillable

$table protected_oe property

Table name
protected string $table
Résultat string