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.