Skip to content

Class "TiMacDonald\JsonApi\JsonApiResource" not found #19

@CNSam

Description

@CNSam

Hi there,

So i've picked up this package this morning and installed into my project, made the necessary change to my resource file and im simply getting the error:
Class "TiMacDonald\JsonApi\JsonApiResource" not found

This is my resource file

<?php

namespace App\Http\Resources;

use Illuminate\Http\Request;
use TiMacDonald\JsonApi\JsonApiResource;

class PostResource extends JsonApiResource
{ 
...

Am I missing something here? I can see the files in the vendor folder etc but just doesn't work. I've tried composer dump-autoload and that hasn't resolved anything either.

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions