a couple of questions

Closed
Vanguard - Advanced PHP Login and User Management Vanguard - Advanced PHP Login and User Management July 24, 2018
Login to reply
Milos Stojanovic Support Agent
1 month ago
Closed due to inactivity.
Milos Stojanovic Support Agent
1 month ago

Hey Fred,

Vanguard update to Laravel 5.7 is currently in progress. The updated version should be released next week. :)

- Milos

Frederick Stoll
1 month ago

Hi Milos,

I was wondering if you are going to update Vanguard with Laravel 5.7?

Milos Stojanovic Support Agent
4 months ago
Closed due to inactivity.
Milos Stojanovic Support Agent
4 months ago

Hey Fred,

By defaultĀ Vanguard will redirect you to the "intended" page after successful authentication. This means that if you try to access the yourdomain.com/foo page, and that page is visible for authenticated users only, it will first redirect you to the login page and, after you provide correct credentials it will redirect you back to the yourdomain.com/foo.

However, if there is no "intended" page and you access the login page directly or you try to access the Vanguard dashboard directly, then you can customize the default redirect page in "handleUserWasAuthenticated" method inside "app/Http/Controllers/Web/Auth/AuthController" class. You can do it by updating the redirect line like following:

return redirect()->intended('/your-default-page-here');

- Milos

Frederick Stoll
4 months ago

Milos,

I think I figured out the first issue I asked you about. I added a few lines to the controller of each page and it now goes to the login page if I am not logged in.

Still, haven't figured out how to change the default page upon login.

Fred

Frederick Stoll
4 months ago

Hi Milos,

While I was in the process of converting my website to work under Vanguard and Laravel (locally) when I try to load one of the dashboard pages without being logged in, it will bring up the login page, but when I try the same thing to my own page, it just points to a message, is their a reason for this? How can I fix it?

Also, how can I make Vanguard once logged in, go to a page other than dashboard?

Thanks,

Fred