hasMany(OpsSoftware::class)->orderBy('sort')->orderBy('id'); } protected function casts(): array { return [ 'is_active' => 'boolean', ]; } }