Laravel: Place helper of laravel package in element created with javascript

0

I am using the package shinobi of permissions which has a helper called can. The can is used by placing it in the html element in this way:

@can('create.blog.post')<button>Crear</buttton>@endcan

That button is created level of javascript so it is not present in the file .blade. The question is how to place that helper with javascript since it can not be found by the file blade.

    
asked by Kinafune 07.09.2018 в 10:33
source

0 answers