-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[11.x] Feat: factory generic in make:model command (#52855)
* Refactor model generation to include factory doc block * Refactor model generation to include factory doc block in ModelMakeCommandTest * Refactor model generation to include factory doc block in ModelMakeCommandTest * lint * formatting * Update ModelMakeCommand.php --------- Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information
1 parent
1f7b884
commit 22bc32f
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ use Illuminate\Database\Eloquent\Model; | |
|
||
class {{ class }} extends Model | ||
{ | ||
{{ factoryDocBlock }} | ||
use HasFactory; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters