Skip to content

Instantly share code, notes, and snippets.

View Loupeznik's full-sized avatar

Dominik Zarsky Loupeznik

View GitHub Profile
@adamwathan
adamwathan / Uppercase.php
Created December 1, 2017 23:55
Unit Testing Custom Validation Rules
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
class Uppercase implements Rule
{
public function passes($attribute, $value)
{