Link to SPA routes (VueJs, React, Angular) with Laravel router

// our web.php// First, a link to our spa.blade.php file containing the SPA
Route::view('/app/{any_path?}', 'spa')->where('any_path', '(.*)');
// Where we need the link, in our controller, mail etc..
url("/app/profile/{$user->username}")

So, let’s make Laravel aware of our SPA router links.

--

--

--

Founder binge.app. Curious dev. Laravel / Angular / VueJs / React Native / Docker. Love stand up shows.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Build FFmpeg WebAssembly version (= ffmpeg.js): Part.1 Preparation

Why would you use async generators?

Understanding The React Source Code VIII

Angular takeaway 1 — data-binding

🔥 The Evolution of Asynchronous Patterns in JavaScript

How to Add Custom Carousel in React Native

Learning D3 — Running a Local Server(#LearningD3)

React native drawer — custom one

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dejan Blazeski

Dejan Blazeski

Founder binge.app. Curious dev. Laravel / Angular / VueJs / React Native / Docker. Love stand up shows.

More from Medium

Creating Custom Lists with Navigation Drawers

Vue.js Interview Challenge — #15 — Number Input

Creating a Vue 3 and TypeScript project using Vite

Build an Online Shop with Vue And Laravel Part 8.23— Implement Vuex