| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ForgotPasswordController extends Controller |
||
| 10 | { |
||
| 11 | /* |
||
| 12 | |-------------------------------------------------------------------------- |
||
| 13 | | Password Reset Controller |
||
| 14 | |-------------------------------------------------------------------------- |
||
| 15 | | |
||
| 16 | | This controller is responsible for handling password reset emails and |
||
| 17 | | includes a trait which assists in sending these notifications from |
||
| 18 | | your application to your users. Feel free to explore this trait. |
||
| 19 | | |
||
| 20 | */ |
||
| 21 | |||
| 22 | use SendsPasswordResetEmails; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var PasswordBrokerManager |
||
| 26 | */ |
||
| 27 | protected $passwordBrokerManager; |
||
| 28 | |||
| 29 | public function __construct(PasswordBrokerManager $passwordBrokerManager) |
||
| 30 | { |
||
| 31 | parent::__construct(); |
||
| 32 | |||
| 33 | $this->passwordBrokerManager = $passwordBrokerManager; |
||
| 34 | $this->middleware('twill_guest'); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return \Illuminate\Contracts\Auth\PasswordBroker |
||
| 39 | */ |
||
| 40 | public function broker() |
||
| 41 | { |
||
| 42 | return $this->passwordBrokerManager->broker('twill_users'); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param ViewFactory $viewFactory |
||
| 47 | * @return \Illuminate\Contracts\View\View |
||
| 48 | */ |
||
| 49 | public function showLinkRequestForm(ViewFactory $viewFactory) |
||
| 52 | } |
||
| 53 | } |
||
| 54 |