Laravel Vue SPA Issue Tracker part 16: user permissions response

preview_player
Показать описание
Today on our laravel vue spa issue tracker we added the roles and permissions for the current user on the /me endpoint, which we call after logging in or on page refresh, of course if we are logged in.

Рекомендации по теме
Комментарии
Автор

It's been a while since I did this but we managed to do it, just fine <3

ProgrammingwithPeter
Автор

Hi peter, thank for all your tutorials. Please don't use vuex it has unnecessarily overheads. thank so much.

chrisdreamslight
Автор

Did Peter commit today's work?




Yes.

kmata
Автор

I couldnt get permissions to returned as per video. I got mine to work with

$userRoles =
$roles = $userRoles->pluck('slug');
$permission =

jgimonkey