Level 23
I haven't really used Lumen before.
Have you one into your vendor folder and manually search that class, just for the sake of seeing it actually exists in your project.
use Illuminate\Http\Resources\Json\ResourceCollection; works and can be retrieved inside a Lumen project. But, using use Illuminate\Http\Resources\Json\JsonResource; will return
Class 'Illuminate\Http\Resources\Json\JsonResource' not found`
So, how can I add JsonResource inside a Lumen project?
I am stupid in 5.5 it is supposed to be use Illuminate\Http\Resources\Json\Resource; not use Illuminate\Http\Resources\Json\JsonResource;
Please or to participate in this conversation.