📜  Gate::before not working laravel 8 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:42.644000             🧑  作者: Mango

代码示例1
try something like this :

@canany(['update', 'view', 'delete'], $post)
    
@elsecanany(['create'], \App\Models\Post::class)
    
@endcanany