This commit is contained in:
Nabeel Shahzad
2017-06-29 15:50:16 -05:00
parent fc1220178b
commit 0821258a2d
4 changed files with 29 additions and 9 deletions

View File

@@ -71,6 +71,11 @@ class User extends Authenticatable
return $this->belongsTo('App\Models\Airport', 'curr_airport_id');
}
public function pireps()
{
return $this->hasMany('App\Models\Pirep', 'user_id');
}
public function rank()
{
return $this->belongsTo('App\Models\Rank', 'rank_id');