Alphanumeric Callsign For Flights (#1124)
* Alphanumeric Callsign For Flights PR adds ability to define alphanumeric callsigns to flights, display them and use them during SimBrief OFP generation (if pilot ident as callsign option is not enabled) Translations for en/es/it/pt-br added. * Change db table name * Change db column name, fix rules * Change db column name * Another db column name change * Just another one more * Last one from anumeric_callsign to callsign Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
This commit is contained in:
@@ -15,6 +15,7 @@ use Illuminate\Support\Collection;
|
||||
* @property Airline airline
|
||||
* @property int airline_id
|
||||
* @property mixed flight_number
|
||||
* @property mixed callsign
|
||||
* @property mixed route_code
|
||||
* @property int route_leg
|
||||
* @property bool has_bid
|
||||
@@ -60,6 +61,7 @@ class Flight extends Model
|
||||
'id',
|
||||
'airline_id',
|
||||
'flight_number',
|
||||
'callsign',
|
||||
'route_code',
|
||||
'route_leg',
|
||||
'dpt_airport_id',
|
||||
@@ -104,6 +106,7 @@ class Flight extends Model
|
||||
public static $rules = [
|
||||
'airline_id' => 'required|exists:airlines,id',
|
||||
'flight_number' => 'required',
|
||||
'callsign' => 'string|max:4|nullable',
|
||||
'route_code' => 'nullable',
|
||||
'route_leg' => 'nullable',
|
||||
'dpt_airport_id' => 'required|exists:airports,id',
|
||||
|
||||
Reference in New Issue
Block a user