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?