Created
August 19, 2025 08:12
-
-
Save CodeWithDennis/42fe943c432a5578e73b0c003b36c58e to your computer and use it in GitHub Desktop.
Generate test records with a simple command
This file contains hidden or 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
| function factory() { | |
| php artisan tinker --execute="$1::factory(${2:-1})->create();" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment