Join us on our TWC Discord channel

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Laravel JsonApi
#4
OK, I went back to my internship after a week of vacation, and found where my error was.

I used artisan to generate an adapter, and I thought it was good, but nope.
artisan generates an empty find() method in the adapter, so ofc, this won't work.

I digged into the Laravel-json-api github, and found how to define the find() method :

Code:
public function find($resourceId) { return $this->findQuery($resourceId)->first(); }

Now, we're talking Smile
[Image: 3137_20_11_19_11_03_56.png] [Image: 3137_29_08_20_6_07_21.gif]

[Image: fr.gif] -TWC|LePresident|BMS

[Image: b_560_95_1.png]
Reply


Messages In This Thread
Laravel JsonApi - by LePresident - 09-08-2019, 10:44 PM
RE: Laravel JsonApi - by Ligustah - 11-08-2019, 01:53 PM
RE: Laravel JsonApi - by LePresident - 14-08-2019, 05:11 PM
RE: Laravel JsonApi - by LePresident - 19-08-2019, 10:49 AM
RE: Laravel JsonApi - by Ligustah - 21-08-2019, 12:13 AM
RE: Laravel JsonApi - by LePresident - 21-08-2019, 11:28 PM

Forum Jump:


Users browsing this thread: