You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/docs/4.laravel/1.laravel-automations.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ In order for this script to run,`AUTORUN_ENABLED` must be set to `true`. Once th
23
23
|`AUTORUN_LARAVEL_MIGRATION_ISOLATION`|`false`| Run your migrations with the [`--isolated`](https://laravel.com/docs/12.x/migrations#running-migrations) flag. <br> **ℹ️ Note:** Requires Laravel v9.38.0+ |
24
24
|`AUTORUN_LARAVEL_MIGRATION_TIMEOUT`|`30`| Number of seconds to wait for database connection before timing out during migrations. |
25
25
|`AUTORUN_LARAVEL_OPTIMIZE`|`true`|`php artisan optimize`: Optimizes the application. |
26
+
|`AUTORUN_LARAVEL_SEED`|`false`|`php artisan db:seed`: Runs the default seeder. <br> **ℹ️ Note:** Set to `true` to run the default seeder. If you want to run a custom seeder, set this to the name of the seeder class. |
26
27
|`AUTORUN_LARAVEL_ROUTE_CACHE`|`true`|`php artisan route:cache`: Caches the routes. |
27
28
|`AUTORUN_LARAVEL_STORAGE_LINK`|`true`|`php artisan storage:link`: Creates a symbolic link from `public/storage` to `storage/app/public`. |
28
29
|`AUTORUN_LARAVEL_VIEW_CACHE`|`true`|`php artisan view:cache`: Caches the views. |
@@ -65,6 +66,11 @@ This command caches all configuration files into a single file, which can then b
65
66
66
67
[Read more about configuration caching →](https://laravel.com/docs/12.x/configuration#configuration-caching)
67
68
69
+
## php artisan db:seed
70
+
This command runs the default seeder. If you want to run a custom seeder, set `AUTORUN_LARAVEL_SEED` to the name of the seeder class.
71
+
72
+
[Read more about seeding →](https://laravel.com/docs/12.x/seeding)
73
+
68
74
## php artisan route:cache
69
75
This command caches the routes, dramatically decrease the time it takes to register all of your application's routes. After running this command, your cached routes file will be loaded on every request.
0 commit comments