Source: laravel.at.jeffsbox.eu

Laravel 5: Gotchas – Laravel validation

Category: Laravel, PHP

Lets say we need to validate: required number between 1 and 4 in length (e.g. 1 to 9999) with max value less/equal to: 8760 You could go for something like this: Note: you could argue why use digits_between, if we have max:8760, but this is just an example to show this little peculiarity.
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.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners