Categories (NN)

This commit is contained in:
Clément
2025-04-17 15:04:13 +02:00
parent dad50e035f
commit 338e803c5f
14 changed files with 398 additions and 1 deletions

View File

@@ -22,4 +22,9 @@ class Billet extends Model
{
return $this->hasMany(Commentaire::class);
}
public function categories()
{
return $this->belongsToMany(Categorie::class);
}
}