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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners