Skip to content

Instantly share code, notes, and snippets.

@Maxim-Kolmogorov
Created November 6, 2022 09:37
Show Gist options
  • Save Maxim-Kolmogorov/5064c577342857ba33c28f2b3fae8819 to your computer and use it in GitHub Desktop.
Save Maxim-Kolmogorov/5064c577342857ba33c28f2b3fae8819 to your computer and use it in GitHub Desktop.
Laravel 9 + Vite + Vue.js + SSR = example, part 9
<?php
use Illuminate\Support\Facades\Route;
use Illuminate\Http\Request;
Route::get('/', function (Request $request) {
return view('welcome', [
'url' => $request->path()
]);
});
Route::get('/about', function (Request $request) {
return view('welcome', [
'url' => $request->path()
]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment