Laravel Migration: Change Foreign Key to Nullable

Опубликовано: 30 Сентябрь 2024
на канале: Laravel Daily
11,968
406

Today I'm answering a question from the comment on how to change the foreignId to make it nullable?

Related links:
- Laravel Foreign Keys: How to Deal with Errors    • Laravel Foreign Keys: How to Deal wit...  
- Official Docs: Foreign Key Constraints https://laravel.com/docs/8.x/migratio...

- - - - -
Support the channel by checking out our products:
- Enroll in my Laravel courses: https://laraveldaily.teachable.com
- Try our Laravel QuickAdminPanel: https://bit.ly/quickadminpanel
- Purchase my Livewire Kit: https://livewirekit.com
- View Laravel Code Examples: https://laravelexamples.com
- Subscribe to my weekly newsletter: http://bit.ly/laravel-newsletter