'boolean', 'sort_order' => 'integer', ]; } public function violationTypes() { return $this->hasMany(ViolationType::class, 'category_id'); } }