Skip to content
Discussion options

You must be logged in to vote

I am stuck without any solution to this problem which I assume is a BUG.

We already have multiple feature and dusk tests covering this use case and everything working as expected. However I wouldn't recommend using canSee such as above and can imagine how that going to cause an issue since $this->resource not always yield a record.

You should use canRun(callable(\Laravel\Nova\Http\Requests\NovaRequest, \Illuminate\Database\Eloquent\Model)) instead.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Elshaden
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4988 on October 31, 2022 00:45.