Laravel 11: Auto-Redirect Logged-In Users from Homepage

Laravel 11: Auto-Redirect Logged-In Users from Homepage

Laravel Daily

55 лет назад

3,141 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@kostovivaylo
@kostovivaylo - 12.02.2025 09:45

Who need that?!

Ответить
@devhammed
@devhammed - 12.02.2025 10:25

The redirectGuestsTo method will redirect guests to that URL if they try to visit a page with auth middleware.

Ответить
@Altbergz
@Altbergz - 12.02.2025 13:51

How can you use it conditionally in a more complex situation?
For example, you have a signed Url for unsubscribie and you want to trigger a mail with a valid link when the user access it without the signature

Ответить