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 {…
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: