Skip to content

Instantly share code, notes, and snippets.

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

Andrés Santibáñez asantibanez

🏠
Working from home
View GitHub Profile
@asantibanez
asantibanez / Emails.php
Created March 9, 2018 18:35
Emails Validation Rule for Laravel
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
use Illuminate\Support\Facades\Validator;
class Emails implements Rule
{
/**
@asantibanez
asantibanez / EcuatorianTaxpayerId.php
Created February 21, 2018 18:33
Laravel Rule Object for Ecuatorian Taxpayer Id Validation
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
class EcuatorianTaxpayerId implements Rule
{
public function __construct()