I normally was using Auth in Laravel blade view to remove buttons that some users have no right too. Now i have just started lately trying to learn Vue and im wondering how im supposed to use this in a Vue Component.
This is what i were using in blade and would like to use in Vue component.
@if(!Auth::guest() && ($post->author_id == Auth::user()->id))
<a href="{{ url('home/edit/'.$post->slug)}}" class="btn-sm btn-info">Edit Post</a>
<a href="{{ url('home/delete/'.$post->id.'?_token='.csrf_token()) }}" class="btn-sm btn-warning">Delete</a>
@endif