Skip to content

Instantly share code, notes, and snippets.

View leantony's full-sized avatar
💭
I may be slow to respond.

leantony

💭
I may be slow to respond.
View GitHub Profile
@martinbean
martinbean / Registrar.php
Last active September 1, 2017 15:47
Laravel 5 registrar service, improved
<?php namespace App\Services;
use App\Contracts\UserRepository;
use App\User;
use Illuminate\Contracts\Auth\Registrar as RegistrarContract;
use Illuminate\Contracts\Hashing\Hasher as HasherContract;
use Illuminate\Contracts\Validation\Factory as ValidationFactory;
use Illuminate\Contracts\Validation\Validator;
class Registrar implements RegistrarContract {