Skip to content

Commit 56ec44c

Browse files
authored
Models should have a HasFactory trait
Models included the `HasFactory` trait in version >= 8 of Laravel
1 parent 0c72a89 commit 56ec44c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Console/stubs/crud-model.stub

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ namespace DummyNamespace;
44

55
use Illuminate\Database\Eloquent\Model;
66
use Backpack\CRUD\app\Models\Traits\CrudTrait;
7+
use Illuminate\Database\Eloquent\Factories\HasFactory;
78

89
class DummyClass extends Model
910
{
1011
use CrudTrait;
12+
use HasFactory;
1113

1214
/*
1315
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)