I have two user types: Teacher and Student
For students the route is:
GET /me/books
the students should only have their books in response.
For teachers the route is:
GET /books
and teachers should have all the students' books in response.
I have one model: Book and one controller: BookController. What is the best approach to writing a BookController@index method in this situation? Using a switch case for user types inside the index method doesn't sound like a best practice.