This commit is contained in:
denisdulici
2019-12-29 10:05:29 +03:00
parent 6052506fd0
commit 6c027db74d
3 changed files with 10 additions and 11 deletions

View File

@ -6,7 +6,6 @@ use App\Abstracts\Model;
class DashboardWidget extends Model
{
protected $table = 'dashboard_widgets';
/**
@ -22,7 +21,7 @@ class DashboardWidget extends Model
* @var array
*/
protected $casts = [
'settings' => 'array'
'settings' => 'array',
];
public function user()
@ -57,7 +56,7 @@ class DashboardWidget extends Model
$value['widget'] = $this;
} else {
$value = [
'widget' => $this
'widget' => $this,
];
}

View File

@ -31,7 +31,7 @@ class Widget extends Model
* @var array
*/
protected $casts = [
'settings' => 'array'
'settings' => 'array',
];
public function dashboard_widgets()