#21 PIREP scaffolding
This commit is contained in:
@@ -51,4 +51,28 @@ class User extends Authenticatable
|
||||
protected $hidden = [
|
||||
'password', 'remember_token',
|
||||
];
|
||||
|
||||
/**
|
||||
* Foreign Keys
|
||||
*/
|
||||
|
||||
public function airline()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Airline', 'airline_id');
|
||||
}
|
||||
|
||||
public function home_airport()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Airport', 'home_airport_id');
|
||||
}
|
||||
|
||||
public function current_airport()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Airport', 'curr_airport_id');
|
||||
}
|
||||
|
||||
public function rank()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Rank', 'rank_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user