<?php

namespace App\Models;

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

class Group extends Model
{
    protected $fillable = ['name','description'];

    public function donateurs()
    {
        return $this->belongsToMany(Donateur::class, 'donateur_group');
    }
}

