Skip to content

serkandyck/laravel-sanctum-vue-spa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel7-Sanctum-Vue SPA

A Laravel-Sanctum-Vue SPA starter project template. This project inspired cretueusebiu/laravel-vue-spa

Features

  • Laravel 7.0 With Sanctum
  • Vue + VueRouter + Vuex + VueI18n + ESlint
  • Pages with dynamic import and custom layouts
  • Login, register, email verification and password reset all functional on airlock
  • Authentication with Sanctum
  • Tailwind CSS

Installation

  • git clone https://github.com/serkandyck/laravel-sanctum-vue-spa
  • composer install
  • Edit .env and set your database connection details and set your environment SESSION_DOMAIN, SANCTUM_STATEFUL_DOMAINS default 127.0.0.1
  • php artisan migrate
  • npm install

Usage

Development

# build and watch
npm run watch

# serve with hot reloading
npm run hot

Production

npm run production

Sanctum

This project uses a Sanctum SPA Authentication.

Sanctum does not use tokens of any kind. Instead, Sanctum uses Laravel's built-in cookie based session authentication services. This provides the benefits of CSRF protection, session authentication, as well as protects against leakage of the authentication credentials via XSS. Sanctum will only attempt to authenticate using cookies when the incoming request originates from your own SPA frontend.

More Details

About

A Laravel7-Sanctum-Vue SPA starter project template.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published