Closed joeelia closed 5 years ago
Your documentation states:
public function viewAny($user) { return Gate::any(['viewBlog', 'manageBlog'], $user, $post); }
but you don't pass an argument in the function of $post so it should be
use Illuminate\Support\Facades\Gate; public function viewAny($user) { return Gate::any(['viewBlog', 'manageBlog'], $user); }
Also, you will get errors unless you import the Gate Facades.
Hi @joeelia
Thanks, that is indeed an error. Will update the docs.
Cheers.
Your documentation states:
but you don't pass an argument in the function of $post so it should be
Also, you will get errors unless you import the Gate Facades.