mercredi 22 août 2018

Laravel's Gate Authorization inside a vue component

Using the Laravel's Gate / Authorization. I can use it in my blade template by simply doing..

@can('edit-post')
    <button></button>
@endcan

However, what if the button is inside a vue component, how can I apply the @can to authorize the user?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2w5pVgL
via IFTTT

Aucun commentaire:

Enregistrer un commentaire