Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions stubs/schema.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace {{ namespace }};

use {{ namespacedModel }};
use LaravelJsonApi\Eloquent\Contracts\Filter;
use LaravelJsonApi\Eloquent\Contracts\Paginator;
use LaravelJsonApi\Eloquent\Fields\DateTime;
use LaravelJsonApi\Eloquent\Fields\ID;
Expand All @@ -23,7 +24,7 @@ class {{ class }} extends {{ schema }}
/**
* Get the resource fields.
*
* @return array
* @return array<mixed>
*/
public function fields(): array
{
Expand All @@ -37,7 +38,7 @@ class {{ class }} extends {{ schema }}
/**
* Get the resource filters.
*
* @return array
* @return array<Filter>
*/
public function filters(): array
{
Expand Down