Questions tagged [laravel-vue]
89 questions
0
votes
2 answers
`Cannot read properties of undefined (reading 'component')`
error: Cannot read properties of undefined (reading 'component')
i am working vue.js3 + laravel8
I'm trying to register my reused my-button component as a global component
vue.js3 + lorevel8
my app.js
window.Vue = require('vue').default;
import {…

Vadim Yanyushkin
- 59
- 3
- 9
0
votes
1 answer
Use Auth facade in API routes (Laravel 8)
I am looking to use Auth::user() in the CompanyController sitting in the api.php route file in Laravel 8. Like
Route::get('team', [CompanyController::class, 'index']);
But if I do so, I won't be able to access Auth in the following code in the…

Andre W.
- 895
- 9
- 19
0
votes
2 answers
Vue components not displaying in production, works well in dev env
I have a laravel vue project working quite well in development but on the live shared hosting server, vue components are not showing up but the laravel views work just fine. There is no error in the console. I ran npm run production to minified for…

Willydbd
- 39
- 1
- 8
0
votes
1 answer
How to get auth token automatically in laravel and vue?
I am using laravel passport for authentication in my laravel and vue.js ecommerce project.
After successful login, I want to redirect user to his/her dashboard.
Here is the vue dashboard page:
…

Tanjib Rubyat
- 27
- 2
- 7
0
votes
0 answers
Laravel + Vue V-IF updating in the database but not in the view
I have a project when I'm using Laravel 7.3 + Vue.
I am trying to assign a company to an internal employee. When I click the "Assign Company" button everything is fine and I can select the company in a select box, but when I click the "Save Company"…

Beto A. Lien
- 43
- 12
0
votes
2 answers
Change the index of an array in array push
In the application, we implemented the laravel-vue-pagination and in our pagination our columns are checkbox and paid amount(input field) where the checkbox is what user want to pay the item.
Once the page is load, it will save in one variable which…

Angel
- 966
- 4
- 25
- 60
0
votes
1 answer
How to use router-link in vue js?
I am a beginner to laravel-vue and I have a problem with router-link when I get data from the database to view, all things work correctly, but when I set the path to router link, it does not work.
The error is like:
Invalid prop: type check failed…

Zia Yamin
- 942
- 2
- 10
- 34
0
votes
2 answers
Showing a spinner in vue js and bootsrap using v-show
I am using vue js 2.5.17 and vue router as front end and laravel as back end. I have a table with over 1000 record so before it shows I want to use a spinner or loader to show the progress. I have managed to use spinner-grow from bootstrap but it…

Hotdot Cyber
- 361
- 1
- 5
- 21
0
votes
0 answers
Allow HTML Tags Through Axios Request from Vue to Laravel Controller
I have a text area as below:
Script: