fixed dashboard factory
This commit is contained in:
parent
fc660473a9
commit
86de28d87d
@ -4,10 +4,11 @@ namespace App\Models\Common;
|
||||
|
||||
use App\Abstracts\Model;
|
||||
use Bkwld\Cloner\Cloneable;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class Dashboard extends Model
|
||||
{
|
||||
use Cloneable;
|
||||
use Cloneable, HasFactory;
|
||||
|
||||
protected $table = 'dashboards';
|
||||
|
||||
@ -34,4 +35,14 @@ class Dashboard extends Model
|
||||
{
|
||||
return $this->hasMany('App\Models\Common\Widget')->orderBy('sort', 'asc');
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new factory instance for the model.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Factories\Factory
|
||||
*/
|
||||
protected static function newFactory()
|
||||
{
|
||||
return \Database\Factories\Dashboard::new();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user