automatically redirect to /dashboard

Laraship QuestionsCategory: Technicalautomatically redirect to /dashboard
st3fan asked 5 years ago
Hi,

Where should I change config if I want to automatically redirect every person visiting the frontend, if they are logged in.

If not logged in, stay on home.
1 Answers
laraship Staff answered 5 years ago
There is no feature available for your case, you can create a middleware for, it requires development
st3fan replied 5 years ago

ok, so I fixed by putting this in my home blade:

@auth

window.location.replace(“/dashboard”);

@endauth