1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/you-can-validate-data-at-the-database-level.md
Samuel Štancl b451d14953 Week 11/2022
2022-03-20 20:41:25 +01:00

584 B
Raw Permalink Blame History

title tweet_id thread_slug author_username images created_at slug
You can validate data at the database level 1505269891535818754 weekly-thread-2022-11 tobias_petry
https://pbs.twimg.com/media/FN-JmJCXEAUCQjy.jpg
2022-03-19T19:48:03+00:00 you-can-validate-data-at-the-database-level

Database Tip

Your application will have bugs and any data stored may be corrupt forever. But with constraints on the data model, rules would have prevented saving incorrect data in the first place! Use them as a last frontier to make sure you always have valid data.