src/Http/Resources/BaseProductResource.php
Method toArray
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function toArray($request): array
{
/** @var User|null $user */
// @phpstan-ignore-next-line
$user = $request ? $request->user() : Auth::user();