| 1 | <?php | ||
| 8 | class Dashboard extends Model | ||
| 9 | { | ||
| 10 | /** | ||
| 11 | * The table associated with the model. | ||
| 12 | * | ||
| 13 | * @var string | ||
| 14 | */ | ||
| 15 | protected $table = 'dashboards'; | ||
| 16 | |||
| 17 | /** | ||
| 18 | * The primary key column name. | ||
| 19 | * | ||
| 20 | * @var string | ||
| 21 | */ | ||
| 22 | protected $primaryKey = 'dashboard_id'; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * Indicates if the model should be timestamped. | ||
| 26 | * | ||
| 27 | * @var bool | ||
| 28 | */ | ||
| 29 | public $timestamps = false; | ||
| 30 | |||
| 31 | protected $fillable = ['user_id', 'dashboard_name', 'access']; | ||
| 32 | |||
| 33 | public function widgets() | ||
| 37 | |||
| 38 | public function scopeAllAvailable($query, $user_id) | ||
| 43 | |||
| 44 | } | ||
| 45 |