How to set default values in Laravel migration file?
< 1 min readTo set default values in a Laravel migration, you can use the default method on the column definition. For example, suppose you have a users table and you want to add a status column with a default value of active. You can use the following migration: This will add a status column to the users…
