Laravel tip.
You can use Laravel Validator class not only in Controllers.
Here's an example in Artisan command class.
For complex validation, instead of a bunch of if-statements, you may use Validator.


Laravel tip.
You can use Laravel Validator class not only in Controllers.
Here's an example in Artisan command class.
For complex validation, instead of a bunch of if-statements, you may use Validator.