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

Hello @lindyhopchris, first of all I would like to thank you for all the work you've put into this project, it is brilliant and nicely written. I am currently building...

I have the following: ``` protected array $with = [ 'eventRelationshipUpdates.fromModel.ancestors' ]; ``` `fromModel` is morphable, some of these model types may have an `ancestors` relationship that needs loading, some...

I know the current version only filters the output for sparse fields. I was wondering if there is an easy fix to avoid loading mutator attributes. I have a few...

Hi, I have weird case, i have simple `polls` with hasMany `questions` resources. Questions resource also have self reference for parent question (`enabledIfQuestion`). When i try to `GET /api/polls/{id}?include=questions,questions.enabledIfQuestion` everything...

Currently there is no bulletproof way of filtering routes created by JSON API. But there might be a solution by adding JSON API routes as instances of a sub-class of...

I've been trying to use a library like https://github.com/RonasIT/laravel-swagger, but it has not been possible because it needs the request class in the controller to inspect it in order to...

I'm running into an issue where if I create a resource with multiple relationships attached via a polymorphic pivot table, then only one of the models are attached. Furthermore, it...

I have in my route: ```php # routes/api.php $server ->resource('users', JsonApiController::class) ->relationships(function (Relationships $relations) { $relations->hasMany('user-organizations'); }); ``` ```php # UserSchema.php public function fields(): array { return [ // ......

Hi all, First of all, thanks for the great work, I’m starting to love this library :) My question: I want to do some custom authorisation checks when updating a...

I have a Schema and a Controller which implements the standards. I want to add several actions to that controllers. Each post action accepts a different data structure. How can...