How to set a column null on delete in Laravel?
< 1 min readTo set a column to NULL on delete in Laravel, you can use the onDelete method in your migration file. For example, suppose you have a posts table with a user_id column that is a foreign key to the id column in a users table. To set the user_id column to NULL when a user…
