Answer the question
In order to leave comments, you need to log in
Authentication not working in laravel 5.4?
registered
in registercontroller
$user=User::create([
...
]);
Auth::login($user);
$myid = Auth::id();
return redirect()->route('profile',['id'=>$myid]),
Route::get('/profile/{id}','[email protected]')->name('profile');
Answer the question
In order to leave comments, you need to log in
$this->guard()->login($user);
return redirect($this->redirectPath());
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question