12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- namespace App\Http\Controllers\AuthSupervisor;
- use App\Http\Controllers\Controller;
- use Illuminate\Foundation\Auth\ResetsPasswords;
- use Illuminate\Support\Facades\Password;
- use Illuminate\Support\Facades\Auth;
- use Illuminate\Http\Request;
-
-
- class ResetPasswordController extends Controller
- {
- /*
- |--------------------------------------------------------------------------
- | 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;
- /**
- * Where to redirect users after resetting their password.
- *
- * @var string
- */
- protected $redirectTo = '/supervisor/dashboard';
- public function __construct()
- {
- $this->middleware('teacher.guest');
- }
- public function showResetForm(Request $request, $token = null)
- {
- return view('auth_supervisor.passwords.reset_new')->with(
- ['token' => $token, 'email' => $request->email]
- );
- }
- public function broker()
- {
- return Password::broker('users');
- }
- /**
- * Get the guard to be used during password reset.
- *
- * @return \Illuminate\Contracts\Auth\StatefulGuard
- */
- protected function guard()
- {
- return Auth::guard('teacher');
- }
-
- }
|