'date', 'end_date' => 'date', 'is_current' => 'boolean', ]; } public function scopeCurrent($query) { return $query->where('is_current', true); } public static function current(): ?self { return static::where('is_current', true)->first(); } public static function options(): array { return static::orderByDesc('start_date')->pluck('name', 'id')->toArray(); } }