You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Missing argument 1 for App\Http\Controllers\Controller::redirectTo(),
called in /home/username/my_app/vendor/laravel/framework/src/Illuminate/Foundation/Auth/RedirectsUsers.php on line 15
and defined in /home/username/my_app/vendor/efficiently/jquery-laravel/src/Efficiently/JqueryLaravel/ControllerAdditions.php line 93
Here the workaround:
In your app/Http/Controllers/Auth/LoginController.php, app/Http/Controllers/Auth/RegisterController.php and app/Http/Controllers/Auth/ResetPasswordController.php files , you should replace the redirectTo() call to redirectUserTo().
//...classLoginControllerextendsController
{
//.../** * Get the post register / login redirect path. * And keep Efficiently\JqueryLaravel\ControllerAdditions::redirectTo() * * @see https://github.com/efficiently/jquery-laravel/issues/1 * @return string */publicfunctionredirectPath()
{
if (method_exists($this, 'redirectUserTo')) {
return$this->redirectUserTo();
}
returnproperty_exists($this, 'redirectTo') ? $this->redirectTo : '/home';
}
}
Since Laravel 5.3.29, if you get this Error Exception:
Here the workaround:
In your
app/Http/Controllers/Auth/LoginController.php
,app/Http/Controllers/Auth/RegisterController.php
andapp/Http/Controllers/Auth/ResetPasswordController.php
files , you should replace theredirectTo()
call toredirectUserTo()
.So the
ControllerAdditions::redirectTo()
method works again 😸Source: laravel/framework#16896
The text was updated successfully, but these errors were encountered: