1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/you-can-use-schema-methods-eg-table-or-create-outside-of-migrations.md
2021-11-19 16:10:01 +01:00

588 B

title tweet_id thread_slug author_username images created_at slug
You can use Schema methods — e.g. table() or create() — outside of migrations 1461703835215228932 weekly-thread-2021-46 aarondfrancis
https://pbs.twimg.com/media/FEfnHQxWQAwIbVq.jpg
2021-11-19T14:32:06+00:00 you-can-use-schema-methods-eg-table-or-create-outside-of-migrations

I don't do it very often, but you can use Laravel's Schema builder anywhere you want, not just in migrations!

If you ever need to make a temp table to help you mass process data more quickly, it's a great solution.