Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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'], AppModelsPost::class)
    <!-- The current user can create a post... -->
@endcanany
 
PREVIOUS NEXT
Tagged: #working #laravel
ADD COMMENT
Topic
Name
1+9 =