fixed relationship
This commit is contained in:
parent
3249e7b18d
commit
1207dc8d13
@ -28,4 +28,9 @@ class UserCompany extends Model
|
||||
{
|
||||
return $this->belongsTo('App\Models\Auth\User');
|
||||
}
|
||||
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Common\Company');
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ class UserDashboard extends Model
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['user_id', 'company_id'];
|
||||
protected $fillable = ['user_id', 'dashboard_id'];
|
||||
|
||||
/**
|
||||
* Indicates if the model should be timestamped.
|
||||
@ -28,4 +28,9 @@ class UserDashboard extends Model
|
||||
{
|
||||
return $this->belongsTo('App\Models\Auth\User');
|
||||
}
|
||||
|
||||
public function dashboard()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Common\Dashboard');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user