Merge branch 'master' of github.com:akaunting/akaunting

This commit is contained in:
Cüneyt Şentürk
2021-06-22 09:51:40 +03:00
17 changed files with 164 additions and 57 deletions

View File

@ -4,10 +4,11 @@ namespace App\Models\Common;
use App\Abstracts\Model;
use Bkwld\Cloner\Cloneable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Widget extends Model
{
use Cloneable;
use Cloneable, HasFactory;
protected $table = 'widgets';
@ -36,4 +37,14 @@ class Widget extends Model
{
return $this->hasManyThrough('App\Models\Auth\User', 'App\Models\Common\Dashboard');
}
/**
* Create a new factory instance for the model.
*
* @return \Illuminate\Database\Eloquent\Factories\Factory
*/
protected static function newFactory()
{
return \Database\Factories\Widget::new();
}
}