ajout de la fonctionnalité login et modification profil

This commit is contained in:
2026-03-23 23:06:33 +01:00
parent eb9d1f496b
commit a7ac890c17
20 changed files with 867 additions and 67 deletions
+13 -1
View File
@@ -6,5 +6,17 @@ use Illuminate\Database\Eloquent\Model;
class Categorie extends Model
{
//
public $timestamps = false;
protected $primaryKey = 'ID_Categorie';
protected $table = 'categories';
protected $fillable = [
'Nom',
'Description',
];
public function ressources()
{
return $this->belongsToMany(Ressource::class, 'ressource_categories', 'ID_Categorie', 'ID_Ressource', 'ID_Categorie', 'ID_Ressource');
}
}