Skip to content

Instantly share code, notes, and snippets.

View ianfagg's full-sized avatar

Ian ianfagg

View GitHub Profile
@ianfagg
ianfagg / PasswordController.php
Created August 8, 2017 14:19
Spark user verification
<?php
namespace App\Http\Controllers\Auth;
use Laravel\Spark\Spark;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Laravel\Spark\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Password;
@ianfagg
ianfagg / web.php
Created August 8, 2017 11:20
Spark user verification
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
@ianfagg
ianfagg / login.blade.php
Created August 8, 2017 11:15
Spark user verification
@extends('spark::layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Login</div>
<div class="panel-body">
@ianfagg
ianfagg / EventServiceProvider.php
Created August 8, 2017 11:10
Spark user verification
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
@ianfagg
ianfagg / AlertVerificationEmailSent.php
Created August 8, 2017 11:08
Spark user verification
<?php
namespace App\Listeners;
use Jrean\UserVerification\Events\VerificationEmailSent;
class AlertVerificationEmailSent
{
/**
* Create the event listener.
@ianfagg
ianfagg / AlertUserVerified.php
Created August 8, 2017 11:07
Spark user verification
<?php
namespace App\Listeners;
use Jrean\UserVerification\Events\UserVerified;
class AlertUserVerified
{
/**
* Create the event listener.
@ianfagg
ianfagg / RegisterController.php
Last active August 8, 2017 14:00
Spark user verification
<?php
namespace App\Http\Controllers\Auth;
use Laravel\Spark\Spark;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Laravel\Spark\Events\Auth\UserRegistered;
use Laravel\Spark\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\RedirectsUsers;
@ianfagg
ianfagg / LoginController.php
Created August 8, 2017 11:03
Spark user verification
<?php
namespace App\Http\Controllers\Auth;
use Laravel\Spark\Spark;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Laravel\Spark\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Laravel\Spark\Contracts\Interactions\Settings\Security\VerifyTwoFactorAuthToken as Verify;