<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class DossierStatus extends Model
{
    use HasFactory;

    protected $fillable=['status','color'];

    // public function dossier()
    // {
    //     return $this->hasMany(Dossier::class);
    // }

    public function dossier()
    {
        return $this->belongsToMany(Dossier::class,'dossier_status')->withTimestamps();
    }

// anomalie terminer en cours
}
