79300330

Date: 2024-12-22 01:09:21
Score: 1.5
Natty:
Report link

You can fix that by using DocBlock with @var to define varialbe type then use that varialbe as User model instance

/**
* @var \App\Models\User $user;
*/
$user = auth()->user();

dd($user->id);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @var
  • Low reputation (0.5):
Posted by: Mohammad Al-Ani