e3da625927
- Backend Laravel 11 (API REST, JWT auth, PostgreSQL) - Frontend Next.js 14 (React, TypeScript, Tailwind CSS) - Docker Compose (PostgreSQL, backend, frontend) - Modules : auth, profil, tracker émotions, informations, admin
29 lines
556 B
PHP
29 lines
556 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class ContactUrgence extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'contacts_urgence';
|
|
|
|
protected $fillable = [
|
|
'utilisateur_id',
|
|
'nom',
|
|
'telephone',
|
|
'relation',
|
|
];
|
|
|
|
// ──── Relations ────
|
|
|
|
public function utilisateur(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Utilisateur::class);
|
|
}
|
|
}
|