<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Letter extends Model {
    protected $fillable=['organization_id','direction','number','type','classification_code','subject','sender','recipient','letter_date','received_date','body','attachment_path','status','signatory_1','signatory_2','qr_token'];
    protected $casts=['letter_date'=>'date','received_date'=>'date'];
    public function organization(){ return $this->belongsTo(Organization::class); }
}
