hypothetical/app/Http/Controllers/Auth/ConfirmPasswordController.php

41 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2019-10-31 17:24:53 -04:00
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
2019-10-31 17:24:53 -04:00
use Illuminate\Foundation\Auth\ConfirmsPasswords;
2024-03-19 17:11:58 -04:00
use Illuminate\Routing\Controllers\HasMiddleware;
use Illuminate\Routing\Controllers\Middleware;
2019-10-31 17:24:53 -04:00
2024-03-19 17:11:58 -04:00
class ConfirmPasswordController extends Controller implements HasMiddleware
2019-10-31 17:24:53 -04:00
{
/*
|--------------------------------------------------------------------------
| Confirm Password Controller
|--------------------------------------------------------------------------
|
| This controller is responsible for handling password confirmations and
| uses a simple trait to include the behavior. You're free to explore
| this trait and override any functions that require customization.
|
*/
use ConfirmsPasswords;
/**
* Where to redirect users when the intended url fails.
*
* @var string
*/
protected $redirectTo = RouteServiceProvider::HOME;
2019-10-31 17:24:53 -04:00
/**
2024-03-19 17:11:58 -04:00
* Get the middleware that should be assigned to the controller.
2019-10-31 17:24:53 -04:00
*/
2024-03-19 17:11:58 -04:00
public static function middleware(): array
2019-10-31 17:24:53 -04:00
{
2024-03-19 17:11:58 -04:00
return [ 'auth' ];
2019-10-31 17:24:53 -04:00
}
}