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

13 lines
No EOL
588 B
Markdown

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