All Questions
27 questions
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 ...
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:
&...
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. ...
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');
})->...
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' },
...
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 './...
-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 ...
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 ...
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-...
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 ...
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 ...
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>...
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 ...
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 ...
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
...