PHP code example of bionicmaster / laravel-nuxt
1. Go to this page and download the library: Download bionicmaster/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/ */
bionicmaster / laravel-nuxt example snippets
return [
// ...
'providers' => [
// ...
Pallares\LaravelNuxt\LaravelNuxtServiceProvider::class,
],
];
// ...
// Add this route the last, so it doesn't interfere with your other routes.
Route::get(
'{uri}',
'\\'.Pallares\LaravelNuxt\Controllers\NuxtController::class
)->where('uri', '.*');