diff --git a/src/ApiResponse.php b/src/ApiResponse.php index 47780ea..57ff4fa 100644 --- a/src/ApiResponse.php +++ b/src/ApiResponse.php @@ -12,6 +12,7 @@ use Illuminate\Support\Arr; use Illuminate\Support\Str; use Illuminate\Support\Traits\Conditionable; +use Illuminate\Support\Traits\Macroable; use InvalidArgumentException; use JsonSerializable; use KennedyOsaze\LaravelApiResponse\Concerns\Translatable; @@ -19,7 +20,7 @@ class ApiResponse { - use Conditionable, Translatable; + use Conditionable, Translatable, Macroable; protected $data;