for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Backpack\Base\app\Http\Controllers\Auth;
use Backpack\Base\app\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
class ForgotPasswordController extends Controller
{
protected $data = []; // the information we send to the view
/*
|--------------------------------------------------------------------------
| Password Reset Controller
|
| This controller is responsible for handling password reset emails and
| includes a trait which assists in sending these notifications from
| your application to your users. Feel free to explore this trait.
*/
use SendsPasswordResetEmails;
/**
* Create a new controller instance.
*
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct()
$this->middleware('guest');
}
// -------------------------------------------------------
// Laravel overwrites for loading backpack views
* Display the form to request a password reset link.
* @return \Illuminate\Http\Response
public function showLinkRequestForm()
$this->data['title'] = trans('backpack::base.reset_password'); // set the page title
return view('backpack::auth.passwords.email', $this->data);
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.