Skip to main content

Search Results for "foreign key"

We found 6 results for "foreign key".

Video 7:17 mins Free

Laravel Foreign Keys: How to Deal with Errors

There are a lot of sub-topics in this video. Why do you need foreign keys? What happens if you don't create them? How to override default errors? Check for child records on the front-end and the back-end? Use if-else or try-catch? Let's dive in.

Tutorial 1 min read Free

A "hidden" way to drop foreign keys in migrations

If we add a foreign key column in our migration file in function up(), we need to make sure that foreign key would be dropped in down() function, right? The thing is that you need to remember longer foreign key name to drop it by name. What official Laravel documentation doesn't say is that there's a more convenient way.