<?php

namespace App\Models;

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

class Rapport_paroisse extends Model
{
    /** @use HasFactory<\Database\Factories\RapportParoisseFactory> */
    use HasFactory;


    protected $fillable = [
        'designation',
        'code',
        'status',
        'adresse_id',
        'rpp_id',
        'rpa_id',
        'evarest_id',
        'evangeliste_id',
    ];

    // public function service()
    // {
    //     return $this->belongsTo(Service::class);
    // }

    public function personne()
    {
        return $this->belongsTo(Personne::class);
    }
}