Login System (Chapter 21) #5
RenderWarrior
started this conversation in
General
Replies: 1 comment 2 replies
-
Hi @RenderWarrior, thanks for your update. You are completely right. The latest version of the Laravel UI component altered the initial setup and modified the internal code. Thanks for your solution; it will help future readers. We are also planning to publish a second edition of our Laravel book later this year. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm learning a lot with your book!
But I noticed something different with the Laravel UI component.
In the book you told about changing the HOME attribute in app/Providers/RouteServiceProvider.php but it seems the latest Laravel UI changed the code... so you need to set the "/" url into different files.
In your example in this repo I see you used into http/Controllers/Auth/LoginController.php
protected $redirectTo = RouteServiceProvider::HOME;
at line 29, but actually the component has
protected $redirectTo = '/home';
So you need to refactor all the files in the Controllers/Auth folder, changing the /home or implementing the old code.
Beta Was this translation helpful? Give feedback.
All reactions