i want to use angular and laravel for our project in that i am using spatie library i want to know that is there any way that you can use laravel blade directives like i want to use @hasrole , @role etc in blade or do you know how to use any other blade directives like @if, @foreach i know you can manage it in the angular but my main doubt is about how to use spatie @hasrole, @role etc for api's please tell me if you hit with any idea its like
@role('individual')
<h5>Only individual can see this </h5>
@endrole
@role('agent')
<h5>Only agent can see this</h5>
@endrole
i want to all this functionality on api any suggestions?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2IGa90v
via IFTTT
Aucun commentaire:
Enregistrer un commentaire