Skip to content

Commit

Permalink
Add missing ContextableData contract on ressource
Browse files Browse the repository at this point in the history
Fixes #868
  • Loading branch information
Tofandel authored Sep 19, 2024
1 parent cf86d7a commit 3d36e19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Spatie\LaravelData\Concerns\WrappableData;
use Spatie\LaravelData\Contracts\AppendableData as AppendableDataContract;
use Spatie\LaravelData\Contracts\BaseData as BaseDataContract;
use Spatie\LaravelData\Contracts\ContextableData as ContextableDataContract;
use Spatie\LaravelData\Contracts\EmptyData as EmptyDataContract;
use Spatie\LaravelData\Contracts\IncludeableData as IncludeableDataContract;
use Spatie\LaravelData\Contracts\ResponsableData as ResponsableDataContract;
Expand All @@ -22,7 +23,7 @@
use Spatie\LaravelData\DataPipes\FillRouteParameterPropertiesDataPipe;
use Spatie\LaravelData\DataPipes\MapPropertiesDataPipe;

class Resource implements BaseDataContract, AppendableDataContract, IncludeableDataContract, TransformableDataContract, ResponsableDataContract, WrappableDataContract, EmptyDataContract
class Resource implements BaseDataContract, AppendableDataContract, IncludeableDataContract, ContextableDataContract, TransformableDataContract, ResponsableDataContract, WrappableDataContract, EmptyDataContract
{
use BaseData;
use AppendableData;
Expand Down

0 comments on commit 3d36e19

Please sign in to comment.