Models & Application Code in Migrations - ✅ Good or ❌ Bad?

Опубликовано: 14 Октябрь 2024
на канале: Neutron Dev
85
5

In this video, we explore whether it's a good or bad idea to use Eloquent Models and application code in database migrations.

📝Article: https://neutrondev.com/models-applica...

💫 Table of Content 💫
00:00 - Intro
00:10 - What is application code?
00:29 - What are database migrations?
00:57 - Independent
01:33 - Example of application code inside a migration
03:13 - Example of migrations depending on Eloquent Model
04:28 - Query Builder and native SQL
04:41 - Migration versioning
05:27 - Advantage(s) of using Eloquent Models in migrations
05:44 - My opinion
06:00 - What's your opinion?

📧 Sign up for my newsletter to get zero-cost content right at your fingertips
Newsletter: https://neutrondev.com/newsletter/

🔗 You can also find me on 🔗
GitHub: https://github.com/Tynael
Site: https://neutrondev.com/

#laravel #database #migrations