Skip to content

Commit

Permalink
Added test logs
Browse files Browse the repository at this point in the history
  • Loading branch information
daVitekPL committed Oct 24, 2024
1 parent b8a09a4 commit 8c35374
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Resources/ProductResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use App\Models\Product;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;

/**
* @property Product $resource
Expand All @@ -26,6 +27,7 @@ public function view(Request $request): array

public function index(Request $request): array
{
Log::debug($this->resource->toArray());
return [
'attributes' => ($request->filled('attribute_slug') || $this->resource->relationLoaded('productAttributes'))
? ProductAttributeShortResource::collection(
Expand Down

0 comments on commit 8c35374

Please sign in to comment.