I´m building an app that coaches can manage and share athletes data and athletes can access it.
For that, I need two types of users: Coach and Athlete, each with specific methods and properties.
What´s the best way to achieve this? My first idea is to write a class for each user type and associate it with a User, but it looks confusing for me.
Any suggestion?
Thanks in advance!
Please sign in or create an account to participate in this conversation.
Reply to
Use Markdown with GitHub-flavored code blocks.
There's no shortage of content at Laracasts. In fact, you could watch nonstop for days upon days, and still not see everything!
Get Started
User Types
I´m building an app that coaches can manage and share athletes data and athletes can access it.
For that, I need two types of users: Coach and Athlete, each with specific methods and properties.
What´s the best way to achieve this? My first idea is to write a class for each user type and associate it with a User, but it looks confusing for me.
Any suggestion?
Thanks in advance!