0
ユーザーが正常にログインしたときとユーザーが正常に登録されたときに、dashboard
ページにリダイレクトするlaravelデフォルト認証システムを使用しています。正常に登録されたときが、私の場合には、その代わりに、このエラーを与える任意のページにリダイレクトscroll down toパソコンへ転送:デフォルトのページにリダイレクトされない
NotFoundHttpException in RouteCollection.php
私はroutes.php
ている間:
Route::group(['middleware' => 'web'], function() {
Route::auth();
Route::get('/home', '[email protected]');
});
とredirectusers.php
public function redirectPath()
{
if (property_exists($this, 'redirectPath'))
{
return $this->redirectPath;
}
return property_exists($this, 'redirectTo') ? $this->redirectTo : '/home';
}
}
リダイレクトのためにあなたのコントローラに書いたコードは何ですか? –
'AuthController.php'に' protected $ redirectTo = 'の内容を示してください。また、5.2で自動的に使用されているので、 'web'ミドルウェアを使う必要はありません。 –
は 'redirectsusers.php'に/ home @ DhavalBharadva – micky