laravel
laravel copied to clipboard
JSON:API for Laravel applications
Reported via Slack. A developer was getting the following message with the Artisan commands: > You must use the server option when you have more than one API But they...
This has been on the wish-list for some time, the latest issue in the legacy package is this: https://github.com/cloudcreativity/laravel-json-api/issues/489 Hopefully this should now be easier because of the new Nova-style...
At the moment in our authorizer class we do this: ```php return $this->gate->check( 'view', $model ); ``` An improvement would be to support [Policy Responses](https://laravel.com/docs/8.x/authorization#policy-responses) so that the developer can...
Something like the tests `$this->jsonapi()->get('/api/v1/posts')` but to be used within the app, like maybe `\JsonApi::server('v1')->get('api/v1/posts')` which will return the json response content ?
this is for only many-to-many relationships, since this kind of relations constitutes an additional table in the database, and sometimes this table can have some additional pivot columns. According to...
Having setup and followed the docs to enable [hashids](https://laraveljsonapi.io/docs/1.0/schemas/identifier.html#hash-ids), I've discovered that when using hashids with Cursor Pagination, the meta page info uses the ids from the DB column. ...
How I can add pivot values to attach action? ``` public function attachCollectionItems( UserSchema $schema, UserRequest $request, User $user ) { $collectionItems = $schema ->repository() ->modifyToMany($user, 'collection-items') ->attach($request->validatedForRelation(), ['status' =>...
Need to work out how to integrate Scout into index queries (and to-many relationship queries). This has been requested in the previous package here: https://github.com/cloudcreativity/laravel-json-api/issues/449 And the solution should probably...
Is it possible to specify sorting column for included relationships?
can I register 2 authorizers of one Schema? example: - one for permission (as resource authorizer) - one for premium service (register in AuthServiceProvider with LaravelJsonApi::registerAuthorizer) 2 authorizers have very...