Aircraft Controller refactor and localization

This commit is contained in:
Gogs
2021-06-03 20:25:24 +02:00
parent d6dbb3f1e7
commit 3e90d8cbe1
13 changed files with 40 additions and 33 deletions
+6 -1
View File
@@ -24,7 +24,12 @@ class Aircraft extends Model
/**
* @var array Validation rules
*/
public $rules = [];
public $rules = [
'aircraft_type' => 'required',
'registration' => 'required',
'name' => 'required',
'home_airport_id' => 'required',
];
public $belongsTo = [
'aircraft_type' => 'GermanAirlinesVa\Fleet\Models\AircraftType',