2017 © Pedro PelĂĄez
 

library laravel-nuxt

Build a SPA with Laravel and Nuxt

image

pallares/laravel-nuxt

Build a SPA with Laravel and Nuxt

  • Thursday, March 8, 2018
  • by skyrpex
  • Repository
  • 2 Watchers
  • 26 Stars
  • 1,963 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 8 Versions
  • 56 % Grown

The README.md

Warning: this project has been deprecated

laravel-nuxt was created to offer some sugar when working locally with Laravel+Nuxt, solving some cookie problems in the process. Today, it isn't necessary anymore., (*1)

We recommend using Laravel Sanctum, which plays nicely with SPAs (see Sanctum's SPA Authentication section). If you can't migrate, just keep using laravel-nuxt., (*2)

Laravel Nuxt

This package allows you to build a SPA with Laravel and Nuxt., (*3)

Installation

composer require pallares/laravel-nuxt

In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework just add the service provider in config/app.php file:, (*4)

return [
  // ...
  'providers' => [
      // ...
      Pallares\LaravelNuxt\LaravelNuxtServiceProvider::class,
  ],
];

You need to add a fallback route that will render the SPA page in routes/web.php file:, (*5)

// ...
// Add this route the last, so it doesn't interfere with your other routes.
Route::get(
    '{uri}',
    '\\'.Pallares\LaravelNuxt\Controllers\NuxtController::class
)->where('uri', '.*');

Finally, you must install the laravel-nuxt npm package. After following the instructions, run npm run build and try your SPA!, (*6)

The Versions

08/03 2018

dev-legacy

dev-legacy https://github.com/skyrpex/laravel-nuxt

Build a SPA with Laravel and Nuxt

  Sources   Download

MIT

The Requires

 

laravel vue spa nuxt

08/03 2018

dev-develop

dev-develop https://github.com/skyrpex/laravel-nuxt

Build a SPA with Laravel and Nuxt

  Sources   Download

MIT

The Requires

 

laravel vue spa nuxt

08/02 2018

1.0.3

1.0.3.0 https://github.com/skyrpex/laravel-nuxt

Build a SPA with Laravel and Nuxt

  Sources   Download

MIT

The Requires

 

laravel vue spa nuxt

08/02 2018

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/skyrpex/laravel-nuxt

Build a SPA with Laravel and Nuxt

  Sources   Download

MIT

The Requires

 

laravel vue spa nuxt

08/02 2018

v1.x-dev

1.9999999.9999999.9999999-dev https://github.com/skyrpex/laravel-nuxt

Build a SPA with Laravel and Nuxt

  Sources   Download

MIT

The Requires

 

laravel vue spa nuxt

08/02 2018

1.0.2

1.0.2.0 https://github.com/skyrpex/laravel-nuxt

Build a SPA with Laravel and Nuxt

  Sources   Download

MIT

The Requires

 

laravel vue spa nuxt

08/02 2018

1.0.1

1.0.1.0 https://github.com/skyrpex/laravel-nuxt

Permission handling for Laravel 5.4 and up

  Sources   Download

MIT

The Requires

 

laravel vue spa nuxt

08/02 2018

1.0.0

1.0.0.0

  Sources   Download

The Requires