Comments (5)
In the show route you have :id
which will also match create.
So you either move the create
route before the show
route:
{ path: '/users/create', name: 'users.create', component: require('~/pages/users/create.vue') },
{ path: '/users/:id', name: 'users.show', component: require('~/pages/users/show.vue') },
Or replace :id
with :id(\\d+)
so it will only match numbers.
from laravel-vue-spa.
Could you maybe share the project?
from laravel-vue-spa.
Here you go: https://github.com/jbonnett92/laravel-vue-spa
from laravel-vue-spa.
If I move create before show it still directs to show. Also I'm not going to use numbers so not sure it would work.
from laravel-vue-spa.
Sorry I forgot to compile it. Thank you
from laravel-vue-spa.
Related Issues (20)
- sanctum branch bug HOT 2
- API backend router vs Vue router HOT 1
- Redirected when going from X to Y via a navigation guard. HOT 1
- Premium Laravel-Vue SPA HOT 3
- Missing parameter: user I got this error can you help me?
- cannot find fs dependency HOT 1
- JWT Sanctum HOT 1
- [webpack-cli] Error: spawn Unknown system error -86 HOT 1
- Pre-rendering to improve SEO HOT 4
- Sanctum Feedback HOT 4
- Composer install fails with "Your lock file does not contain a compatible set of packages. Please run composer update." HOT 1
- move to vue 3 HOT 3
- npm reported 6 vulnerabilities.
- If you refresh the page multiple times, it logs you out
- when we run "npm run dev" its shows Can't resolve '~/store'
- Support passwordless login
- Anything on Laravel 9 and PHP 8 support? HOT 3
- asyncData function only works once
- how about incorporating vite instead of laravel mix
- localhost:8080 error Cannot GET / HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-vue-spa.