serkandyck / laravel-sanctum-vue-spa

A Laravel7-Sanctum-Vue SPA starter project template.

Home Page:https://dry-cliffs-46064.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

https://dry-cliffs-46064.herokuapp.com/

License:MIT License


Languages

Language:PHP 72.8%Language:Vue 26.5%Language:HTML 0.6%