Skip to content
A Laravel-Vue SPA starter project template.
PHP Vue HTML
Branch: master
Clone or download
Latest commit 377da70 Jul 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap Upgrade to Laravel 5.8 Apr 14, 2019
config Upgrade to Laravel 5.8 Apr 14, 2019
database Upgrade to Laravel 5.8 Apr 14, 2019
public Apply fixes from StyleCI Apr 15, 2019
resources Update welcome.vue May 19, 2019
routes
storage Upgrade to Laravel 5.8 Apr 14, 2019
tests Implement email verification (api only) May 16, 2019
.babelrc Trying to fix invalid build behavior, after laravel-mix 2.1.11 -> 4.0.15 Apr 26, 2019
.editorconfig Upgrade to Laravel 5.8 Apr 14, 2019
.env.dusk.local
.env.dusk.testing
.env.example Update .env.example May 19, 2019
.eslintrc Update eslint Oct 21, 2018
.gitattributes
.gitignore Update .gitignore May 16, 2019
.travis.yml
CHANGELOG.md
LICENSE Init Jan 16, 2017
README.md
artisan Upgrade to Laravel 5.5 and Bootstrap 4 beta1 Sep 2, 2017
composer.json Drop package `staudenmeir/dusk-updater`, because it merged into `dusk` May 4, 2019
composer.lock
package-lock.json Bump axios from 0.18.0 to 0.18.1 Jun 1, 2019
package.json
phpunit.xml Upgrade to Laravel 5.8 Apr 14, 2019
server.php
webpack.mix.js Update webpack.mix.js May 5, 2019

README.md

Laravel-Vue SPA

Build Status Total Downloads Latest Stable Version

A Laravel-Vue SPA starter project template.

Features

  • Laravel 5.8
  • Vue + VueRouter + Vuex + VueI18n + ESlint
  • Pages with dynamic import and custom layouts
  • Login, register, email verification and password reset
  • Authentication with JWT
  • Socialite integration
  • Bootstrap 4 + Font Awesome 5

Installation

  • composer create-project --prefer-dist cretueusebiu/laravel-vue-spa
  • Edit .env and set your database connection details
  • (When installed via git clone or download, run php artisan key:generate and php artisan jwt:secret)
  • php artisan migrate
  • npm install

Usage

Development

# build and watch
npm run watch

# serve with hot reloading
npm run hot

Production

npm run production

Socialite

This project comes with GitHub as an example for Laravel Socialite.

To enable the provider create a new GitHub application and use https://example.com/api/oauth/github/callback as the Authorization callback URL.

Edit .env and set GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET with the keys form your GitHub application.

For other providers you may need to set the appropriate keys in config/services.php and redirect url in OAuthController.php.

Email Verification

To enable email verification make sure that your App\User model implements the Illuminate\Contracts\Auth\MustVerifyEmail contract.

Changelog

Please see CHANGELOG for more information what has changed recently.

You can’t perform that action at this time.