Answers for "gate before function not working in 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'], AppModelsPost::class)
    <!-- The current user can create a post... -->
@endcanany
Posted by: Guest on March-25-2021

Code answers related to "gate before function not working in laravel 8"

Browse Popular Code Answers by Language