Skip to content

Instantly share code, notes, and snippets.

@ianfagg
Created August 8, 2017 11:20
Show Gist options
  • Save ianfagg/0e3bbd2f075480eb9dfcb56e3afa20d5 to your computer and use it in GitHub Desktop.
Save ianfagg/0e3bbd2f075480eb9dfcb56e3afa20d5 to your computer and use it in GitHub Desktop.
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.
|
*/
Route::get('/', 'WelcomeController@show');
// Overwrite Spark's Register function so we can add User Verification...
Route::post('/register', 'Auth\RegisterController@register');
// Overwrite Spark's login function so we can add User Verification...
Route::post('/login', 'Auth\LoginController@login');
// To stop un-verified users getting a reset email...
Route::post('/password/email', 'Auth\PasswordController@sendResetLinkEmail');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment