-
Notifications
You must be signed in to change notification settings - Fork 106
Description
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