PasswordController.php 1.02 KB
Newer Older
Taylor Otwell committed
1
<?php namespace App\Http\Controllers\Auth;
2

Taylor Otwell committed
3
use App\Http\Controllers\Controller;
Taylor Otwell committed
4 5
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Auth\PasswordBroker;
6
use Illuminate\Foundation\Auth\ResetsPasswords;
7

8
class PasswordController extends Controller {
9

10 11 12 13 14 15 16 17 18 19 20 21
	/*
	|--------------------------------------------------------------------------
	| Password Reset Controller
	|--------------------------------------------------------------------------
	|
	| This controller is responsible for handling password reset requests
	| and uses a simple trait to include this behavior. You're free to
	| explore this trait and override any methods you wish to tweak.
	|
	*/

	use ResetsPasswords;
22

Taylor Otwell committed
23 24 25
	/**
	 * Create a new password controller instance.
	 *
Taylor Otwell committed
26 27
	 * @param  \Illuminate\Contracts\Auth\Guard  $auth
	 * @param  \Illuminate\Contracts\Auth\PasswordBroker  $passwords
Taylor Otwell committed
28 29 30 31 32 33 34 35 36 37
	 * @return void
	 */
	public function __construct(Guard $auth, PasswordBroker $passwords)
	{
		$this->auth = $auth;
		$this->passwords = $passwords;

		$this->middleware('guest');
	}

38
}