true, 'return_cancelled_to_pool' => true, ]; protected $fillable = [ 'nama', 'is_active', 'return_cancelled_to_pool', 'started_by', ]; protected function casts(): array { return [ 'is_active' => 'boolean', 'return_cancelled_to_pool' => 'boolean', ]; } public function results(): HasMany { return $this->hasMany(DrawResult::class); } public function startedBy(): BelongsTo { return $this->belongsTo(User::class, 'started_by'); } public static function active(): self { return static::firstOrCreate( ['is_active' => true], ['nama' => 'Mesyuarat Agung Tahunan KOIPB'] ); } }