#php
Read more stories on Hashnode
Articles with this tag
TL; DR; As of version 10, Laravel does not have a built-in way to validate that a field is equal to a specific value. However, you can easily create a...
Background: How to define default Locale for Notifiable Since Laravel 5.7.7, you can set the preferred locale on a Notifiable. In other words, you can...
How to use ValidationException::withMessages() method? Instead of manually creating a Validator, then adding some rules into it, and executing...
When you look at the Validator source code in Laravel, you see that it either throws a ValidationException or returns an array of validated...
How can we "fake" belongs-to-through relations in Laravel using a native has-one-through relationship. ยท Take the following 3 models: customer id -...