<?php
namespace App\Models;
class FiscalYear extends BaseModel {
    protected function casts(): array { return ['start_date' => 'date', 'end_date' => 'date', 'is_current' => 'boolean', 'is_closed' => 'boolean']; }
    public static function current(): ?self { return static::where('is_current', true)->first(); }
    public function journals() { return $this->hasMany(Journal::class); }
}
