Website Portfolio with Laravel and Vue js | Login And Register Sanctum Auth With Vuejs 3

preview_player
Показать описание
Today we are introducing a new series called “Let’s Build Portfolio Website” where we are mostly going to show you how we develop personal portfolio website based on Laravel and Vuejs from scratch

In this very second episode of “Let’s build Portfolio website”, we are going to see how to Login And Register Sanctum Auth With Vuejs 3.

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

when I make a request via post man on register endpoint, it returns a 500 response(Internal Server Error)

tholfikarmohammed
Автор

Just a tip, put on some background music at a low volume and don't talk too close to the microphone

enthsz
Автор

Anyone facing this error:
Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes.
While running the migration, you need to add this line in AppServiceProvider in boot function:

Don't forget to import the namespace for Schema

tholfikarmohammed
Автор

router.beforeEach((to, from, next) => {
if (to.meta.requiresAuth && {
next({ name: 'login' });
} else if (to.meta.requiresAuth === false && {
next({ name: 'admin' });
} else {
next(); // Continue with the navigation
}
});

yamato