Laravel Vue SPA Issue Tracker part 4: vue router middlewares

preview_player
Показать описание
Today on our Laravel Vue sPA issue tracker part 4 we are setting up vue router middlewares.
After that we are creating two middlewares, one for authenticated user and another for guests and we use them on our current routes.

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

We just have to do this once and after that touch only for example to support permissions and that's it !

ProgrammingwithPeter
Автор

Hi peter, can you help me understand this section ... return (...parameters) => {} . how is this working and what are the values passed in ...parameters and next question is return middleware[0]({ ...ctx, nextMiddleware }); this [0]. if i have multiple middleware how does this work ? middleware[0] always returns auth middleware right ?

anygames
Автор

Hello Peter. Is it good practice to store token in local storage? Some say it is not. Great tutorial BTW. Best regards.

tpiljek
Автор

Did Peter commit today's work?




Yes.

kmata