Skip to content

IDE not recognizing Auth::user()->can(); ? #1808

Answered by erikn69
richoandika asked this question in Q&A
Discussion options

You must be logged in to vote
/** @var \App\Models\User $user */

weird, that comment must have told your IDE the class returned by the method

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@fftfaisal
Comment options

Comment options

You must be logged in to vote
3 replies
@Shazzad998
Comment options

@erikn69
Comment options

Answer selected by drbyte
@ceciiiron
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
5 participants
Converted from issue

This discussion was converted from issue #1806 on August 06, 2021 17:57.