Reference the accessory instance instead of the model
This commit is contained in:
parent
e506ed7950
commit
c089f6eff2
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@
|
||||||
</li>
|
</li>
|
||||||
@endcan
|
@endcan
|
||||||
|
|
||||||
@can('update', \App\Models\Accessory::class)
|
@can('update', $accessory)
|
||||||
<li class="pull-right">
|
<li class="pull-right">
|
||||||
<a href="#" data-toggle="modal" data-target="#uploadFileModal">
|
<a href="#" data-toggle="modal" data-target="#uploadFileModal">
|
||||||
<i class="fas fa-paperclip" aria-hidden="true"></i> {{ trans('button.upload') }}
|
<i class="fas fa-paperclip" aria-hidden="true"></i> {{ trans('button.upload') }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue