In the route below it will go to the auth controller and excute the function showResetForm, I want to add some variable inside this function to be shown when open the reset form, all working fine in localhost but the same files in the server still go to showResetForm function in vendor directory!!!!
(在下面的路由中,它将转到auth控制器并执行函数showResetForm,我想在此函数内添加一些变量,以在打开reset表单时显示,它们在localhost中都可以正常工作,但服务器中的相同文件仍然可以访问供应商目录中的showResetForm函数!)
$this->get('password/reset/{token}', 'AuthResetPasswordController@showResetForm')->name('password.reset');
I dont want to use the function here vendor\laravel\framework\src\Illuminate\Foundation\Auth\ResetsPasswords.php
(我不想在此处使用该功能vendor \ laravel \ framework \ src \ Illuminate \ Foundation \ Auth \ ResetsPasswords.php)
I want the function showResetForm to be in auth/controller folder, in localhost working fine but in server not working!!!!
(我希望功能showResetForm在auth / controller文件夹中,在localhost中工作正常,但在服务器中不工作!)
still takes me here: https://imgur.com/VO5JDG5 (仍然带我到这里: https : //imgur.com/VO5JDG5)
class ResetPasswordController extends Controller
{
use ResetsPasswords;
* @var string
*/
protected $redirectTo = '/';
/**
* Create a new controller instance.
*
* @return void
*/
public function showResetForm(Request $request, $token = null)
{
$cartContents=Cart::content();
$cartstore=Helper::cartstore();
$setting = SiteSetting::getSettings();
return view('auth.passwords.reset',compact('cartstore','cartContents','setting'))->with(
['token' => $token, 'email' => $request->email]
);
}
public function __construct()
{
$this->middleware('guest');
}
}
ask by Farag Halain translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…