Support the ongoing development of Laravel.io →
Authentication Session Views
Last updated 2 years ago.
0

RPBTwisted said:

I'm fairly new to Laravel and couldn't find anything on this. If for example, I was creating a panel that users could monitor their services from meaning each user with a service/service ID is redirected to their service dashboard upon login, how would I do this?

What usually happens is that everyone gets the same service dashboard TEMPLATE but the information they have access to would be personalized to that service ID. In your controller, you would access the DB and pass the information to the template based on their service ID. Basically, they all go to the SAME area but with different information showing.

If you really must have different URLs, you can try reading it off the url (example: /dashboard/<service ID or some a unique hash of some sort>) but it feels a bit redundant since you still need to check whether your service ID matches the hash that they came into. I would stick with the first idea.

edit:

Last updated 7 years ago.
0

Thank you for that. I'll have a look!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

RPBTwisted rpbtwisted Joined 28 Feb 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.