Echo.private('App.User.Permissions.' + this.$auth.user().id)
.listen('UserPermissions', (e) => {
this.$auth.user().permissions = e.permissions
this.$store.dispatch('initMenu')
});
<v-tooltip top>
<v-btn flat icon small
@click="editItem(props.item)"
v-if="$auth.check('projects_edit', 'permissions')"
class="mx-0"
slot="activator"
>
<v-icon small>
edit
</v-icon>
</v-btn>
<span>Редактировать проект</span>
</v-tooltip>
$projects = Projects::where('id' , 6)->get();
object(Illuminate\Database\Eloquent\Collection)[229]
protected 'items' =>
array (size=0)
empty