PHP code example of m2s / laravel-nuxt
1. Go to this page and download the library: Download m2s/laravel-nuxt library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
m2s / laravel-nuxt example snippets
route('nuxt');
// or
route('nuxt', ['path' => 'some/deep/path']);
use M2S\LaravelNuxt\Facades\Nuxt;
Nuxt::route('example/route')->name('nuxt.example');
sh
php artisan vendor:publish --provider="M2S\LaravelNuxt\LaravelNuxtServiceProvider"