laravel icon indicating copy to clipboard operation
laravel copied to clipboard

JSON:API for Laravel applications

Results 83 laravel issues
Sort by recently updated
recently updated
newest added

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...

enhancement

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...

help wanted

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...

enhancement

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 ?

enhancement

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. ![5a1b926235b7a9562e1aa6a727700148](https://user-images.githubusercontent.com/24785934/175773273-f8250b8c-6fcd-4e24-8c1e-7f2d8fb88d14.png)...

bug

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...

enhancement