'integer', 'name' => 'string', 'type' => 'string' ]; /** * Validation rules * * @var array */ public static $rules = [ ]; public function airline() { return $this->belongsTo('App\Models\Airline', 'airline_id'); } public function fares() { return $this->belongsToMany( 'App\Models\Fare', 'subfleet_fare' )->withPivot('price', 'cost', 'capacity'); } public function flights() { return $this->belongsToMany('App\Models\Flight', 'subfleet_flight'); } public function ranks() { return $this->belongsToMany( 'App\Models\Ranks', 'subfleet_rank' )->withPivot('acars_pay', 'manual_pay'); } }