Category: Laravel, MySQL

How to Create a Check Constraint in Laravel Migration?Assuming that we have a users table with a balance column that must never drops below zero.When it’s not a SQLite database, we would include the column in our database migration as usual.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Community Partners