mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
13 lines
No EOL
588 B
Markdown
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. |