Tuesday, March 14, 2017

Laravel + vue-router Test for authentication

I am trying to convert my Laravel app into a SPA with Vue and Vue router

How can I check if the user is authenticated and only allow certain url's to the authenticated user?

I see the Laravel Auth::user() facade extends from a javascript file.. is there an implementation we can use to check for an authenticated user?

Thanks



via Dazzle

Advertisement