Category: Laravel, PHP

Laravel provides a huge set of built-in validation rules, which are often enough for most projects, but sometimes there are not trivial tasks. Fortunately, Laravel allows you to describe custom rules. In this article, I’m going to show you how to create a rule for video validation. This rule will check the maximum allowed bitrate of the video file.

Custom Laravel rules allow you to hide complex verification logic in specialized classes, keep them in one place, and easily reuse them.
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