Skip to content

Instantly share code, notes, and snippets.

View ereztdev's full-sized avatar
🏠
Working from home

ErezT ereztdev

🏠
Working from home
View GitHub Profile
@martinbean
martinbean / ValidationServiceProvider.php
Last active July 23, 2018 14:23
Sum (of an array) validation in Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\ServiceProvider;
use InvalidArgumentException;
class ValidationServiceProvider extends ServiceProvider
{