8000 The Model path in the adapter is not filled correctly. · Issue #469 · cloudcreativity/laravel-json-api · GitHub
[go: up one dir, main page]

Skip to content
The Model path in the adapter is not filled correctly. #469
Closed
@Mina-R-Meshriky

Description

@Mina-R-Meshriky

When creating a resource using php artisan make:json-api:resource posts, and my posts Model is in App\Models\Post.

the generated adapter will contain the following in the constructor:

public function __construct(StandardStrategy $paging)
    {
        parent::__construct(new \App\Post(), $paging);
    }

I think that the path of the models should be configurable from the json-api-default.php config file

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0