Giter Site home page Giter Site logo

marvix / laravel-sanctum-vue-spa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from serkandyck/laravel-sanctum-vue-spa

0.0 1.0 0.0 292 KB

A Laravel7-Sanctum-Vue SPA starter project template.

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

License: MIT License

PHP 72.84% Vue 26.53% HTML 0.63%

laravel-sanctum-vue-spa's Introduction

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

laravel-sanctum-vue-spa's People

Contributors

serkandyck avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.