Answers for "Gate::before not working laravel 8"

PHP
0

Gate::before not working laravel 8

try something like this :

@canany(['update', 'view', 'delete'], $post)
    <!-- The current user can update, view, or delete the post... -->
@elsecanany(['create'], \App\Models\Post::class)
    <!-- The current user can create a post... -->
@endcanany
Posted by: Guest on March-25-2021

Code answers related to "Gate::before not working laravel 8"

Browse Popular Code Answers by Language