TypeGroups Localization and refactor

This commit is contained in:
Gogs
2021-06-03 20:44:31 +02:00
parent 3e90d8cbe1
commit dc1a64b32d
14 changed files with 30 additions and 29 deletions
+3 -1
View File
@@ -24,7 +24,9 @@ class AircraftTypeGroup extends Model
/**
* @var array Validation rules
*/
public $rules = [];
public $rules = [
'comment' => 'required',
];
public $belongsToMany = [
'aircraft_types' => 'GermanAirlinesVa\Fleet\Models\AircraftType',
+1 -1
View File
@@ -1,5 +1,5 @@
fields:
comment:
label: Comment
label: 'germanairlinesva.fleet::lang.aircraft_type_groups.comment'
span: auto
type: text