I'm trying to use @cannot in my template but I have the following issue. With the code:
@section('content')
@can('upload-images',$flyer)
<form action="{{ URL::to('/') }}/{{ $flyer->zip }}/{{ $flyer->street }}/photos" method="POST" class="dropzone" enctype="multipart/form-data">
{{ csrf_field() }}
</form>
@endcan
@cannot
<p>Not allowed</p>
@endcannot
@stop
@cannot throws the following error:
Undefined class constant 'denies'
I know @cannot exists and also that uses Gate::denies, which is the error I'm taking, here is the Github commit where the magic should occur:
Any clues? Thanks!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire