Closed alies-dev closed 1 year ago
Fixes #184
In this PR I added 3 handlers handlers that provide types for the following cases:
// Request $request->user(); $request->user('guard-name'); // Auth Auth::user(); // Guard Auth::guard('guard-name')->user();
and some other less often used.
TODO:
$guard = Auth::guard('guard-name');
return $guard->user();
______ Previous implementation attempts: - https://github.com/psalm/psalm-plugin-laravel/pull/217
Fixes #184
In this PR I added 3 handlers handlers that provide types for the following cases:
and some other less often used.
TODO:
return $guard->user();