Skip to content

Non-Eloquent models #442

@jk100magnys

Description

@jk100magnys

Problem with Non-eloquent models.
I have 4 Eloquent Resource type and 2 Non-Eloquent.
For the dev purpose Im using Laradock and in that dev environment all 6 resources works fine.
But, when I deployed that code to the other server = 4 Eloquent Resources works fine but 2 non-eloquent doesnt work at all.

I've checked 10 times

  • git pull - the same files
  • the same DB
  • the same composer.lock (many times remove vendor folder and install again)
  • the same OS
  • Classes is Visible (dd shows me Entities and them works)
  • routes is ok

Anyway I see the error
{ "message": "No adapter for resource type: Food", "exception": "CloudCreativity\\LaravelJsonApi\\Exceptions\\RuntimeException", "file": "/var/www/******/vendor/cloudcreativity/laravel-json-api/src/Store/Store.php", "line": 341, "trace": [

What I could forget or what maybe as a problem?

Here is the code of
config - https://pastebin.com/C09uuLTS
adapter - https://pastebin.com/k8AMuc9A
schema - https://pastebin.com/YKHqvrFw

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions