Level 60
Make sure you hit the right endpoint
1 like
I'm trying to implement REST methods in an application. I used artisan to scaffold all classes and other components. When I try to implement the 'index' method in this way :
public function index() { return Log::all(); }
I get in Postman an empty array. []
When I ask the content of log via tinker, I get the full array of objects.
Has anyone an idea what I could be wrong or a suggestion how to debug it?
Thanks in advance.
Wilko
Please or to participate in this conversation.