We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6863e01 commit 77a70b1Copy full SHA for 77a70b1
resources/views/list.blade.php
@@ -1,4 +1,4 @@
1
-@can('adminCreate', $model)
+@can('adminCreate', new $model)
2
<div class="flex flex-row-reverse d-print-none with-border">
3
<a href="{{ $routes['create'] }}" class="btn btn-primary">{{ __('Add') }}</a>
4
</div>
@@ -31,7 +31,7 @@
31
</th>
32
@endif
33
@endforeach
34
- @canany(['adminUpdate', 'adminDelete'], $model)
+ @canany(['adminUpdate', 'adminDelete'], new $model)
35
<th class="py-2 px-4 bg-base-50 font-bold uppercase text-sm text-left">
36
{{ __('Actions') }}
37
0 commit comments