Aircraft Controller refactor and localization
This commit is contained in:
+6
-1
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user