Skip to main content

All Questions

Tagged with
0 votes
1 answer
627 views

Fetch an ID from a URL and pass it to the laravel controller in VueJS

I'm trying to submit a form which is in Vue and my route is http://cricketstats.test/en/dashboard/players/z2d4ca09a7/india/941/runs Here 941 is the player id. I want this id also to be passed to the ...
Volka Dimitrev's user avatar
1 vote
2 answers
259 views

Vue-Router not rerouting in Single Page Application (Vue/Laravel)

I am trying to get vue-router to work in a Vue.js/Laravel project. I have the following simple pages: home page: about page (scrolled down in single page): Made from these files: welcome.blade.php: &...
Artur Müller Romanov's user avatar
0 votes
0 answers
670 views

axios.get return 500 internal server error

I want to fetch record from database, I set route in axios.get(getsitepages) where in route.js file admin is prefix. I set the same route in web.php laravel file where admin is prefix before route. ...
Parteek Kumar's user avatar
0 votes
1 answer
951 views

API routes are not working in Laravel VueJS app

I'm building a SPA with Laravel and Vue. However, I need to make an API call with axios but it's not working. Here's my web.php: Route::get('/{any}', function () { return view('index'); })->...
Nazmul Hossain's user avatar
1 vote
1 answer
2k views

Vue js laravel 8 routing

I am still confused when i try to add a route path in vue router such as : { path: '/admin/blog/archived_blogs', name: 'ArchivedBlogs', meta: { title: 'Archived Blog' }, ...
Kevin Wakhisi's user avatar
0 votes
1 answer
165 views

Laravel/Vue - Get list of routes from backend

I have this router code in resources/js/router.js import Vue from 'vue'; import VueRouter from 'vue-router'; import ClientFeature1 from './components/ClientFeature1'; import ClientFeature2 from './...
Miro's user avatar
  • 405
-1 votes
1 answer
371 views

Laravel & Vuejs resources[CSS & JS] compilation problem

I am using a custom admin template for my project with laravel and vue. There are a lot of css and js files and I have included them in my master.blade.php file. So whenever i refresh the page (for ...
0xHttrackers's user avatar
1 vote
2 answers
1k views

Is it possible for certain routes to use vue router while other routes use laravel router?

What I have is an existing laravel application with blades , laravel routes and a few vue components. So I don't want to replace the existing routes with vue router. What I want is to add additional ...
desh's user avatar
  • 689
1 vote
1 answer
405 views

Vue components not rendering in Laravel blade.php file

Here's my set up: This is the parent "Welcome.blade.php" set up. I'm including the relevant information since the file is pretty long: <div id='app'> <router-view></router-...
Pacholoamit's user avatar
1 vote
1 answer
411 views

Multiple Layouts in Laravel Blade, Vue-Router [closed]

I am trying to separate user & admin functionality but can't find a satisfactory solution. After login, the user is authenticated and then he is redirected to either user or admin blade view ...
Bvc...'s user avatar
  • 191
1 vote
0 answers
167 views

How to access to controllers and retrieve data from the database while using vue-router?

What i want: Trying to build a simple SPA using vuejs and vue-router. Simply retrieve data from the database and display it to the user. I have adjusted the laravel routes to match the vue-router. But ...
Quốc Cường's user avatar
2 votes
1 answer
970 views

router-view does not render routes & components

I want to render components in my blade templates using the <router-view></router-view> component of VueRouter but it seems i'm getting it wrong somehow. I included the <router-view>...
Brendan's user avatar
  • 1,187
1 vote
1 answer
589 views

How to make vue-router mode history work with laravel routes

I currently have a SPA using Vuejs VueRouter and Laravel. What I am trying to do is to make the experience as smooth as possible for the user. I have laravel routes as well as vue routes defined. The ...
CEJ's user avatar
  • 181
1 vote
0 answers
147 views

Laravel vuejs spa axios auth scaffolding

I built an laravel vue spa application and would like to add a login, I ran php artisan make:auth to create an auth scaffolding. I am trying to call the login route using axios, but it keeps returning ...
junfo's user avatar
  • 269
1 vote
0 answers
246 views

Partial SPA with vuejs in laravel

I am building a laravel application where for admin dashboard I am using vuejs. I want following urls, example.com/admin/package/index example.com/admin/package/view/1 example.com/admin/roles/index ...
Abdur Rahman's user avatar

15 30 50 per page