2022-03-02 12:19:46 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models\Auth;
|
|
|
|
|
|
|
|
use App\Abstracts\Model;
|
|
|
|
|
|
|
|
class UserDashboard extends Model
|
|
|
|
{
|
|
|
|
protected $table = 'user_dashboards';
|
|
|
|
|
|
|
|
protected $tenantable = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2022-03-02 12:29:37 +03:00
|
|
|
protected $fillable = ['user_id', 'dashboard_id'];
|
2022-03-02 12:19:46 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates if the model should be timestamped.
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $timestamps = false;
|
|
|
|
|
|
|
|
public function user()
|
|
|
|
{
|
|
|
|
return $this->belongsTo('App\Models\Auth\User');
|
|
|
|
}
|
2022-03-02 12:29:37 +03:00
|
|
|
|
|
|
|
public function dashboard()
|
|
|
|
{
|
|
|
|
return $this->belongsTo('App\Models\Common\Dashboard');
|
|
|
|
}
|
2022-03-02 12:19:46 +03:00
|
|
|
}
|