Skip to main content

All Questions

Tagged with
0 votes
1 answer
83 views

Pass prop to persistent layout

I have search functionality in my header and i want to pass prop products to the header in the persistent layout in order to show these products in the search and filter them accordingly, how can i ...
ahmad kharabsheh's user avatar
0 votes
1 answer
690 views

Inertia Vue 3 - Vue component not receiving props

i want to pass users from Inertia render to vue component: routes/web.php Route::get('/', function () { return Inertia::render('Dashboard',['users'=> DB::table('users')->get()]); })->...
ahmad kharabsheh's user avatar
1 vote
1 answer
3k views

Vuejs Set operation on key failed: target is readonly

I use Laravel9 with Vuejs3. I have a blade view that passes php variables to vue component: <subscription-form location="{{ $props['location'] }}" orientation="{{ $props['...
Skyfrid's user avatar
  • 63
0 votes
0 answers
108 views

Why I can't see my props from backend in my nuxt page?

I'm making an index page nad I have to recover from my db customers data and insert it in a table element in my index page. I've set my props, mounted function with axios that get the data from the ...
4ri37ix L's user avatar
0 votes
1 answer
927 views

How to pass an object with private variables from Laravel to Inertia

Im new using laravel with inertia Version of my laravel is: 9.10.1, Inertia version: 0.11 and Vue: 3.2 I have my class RefundManager class RefundManager { private int $id; private string $...
Elias's user avatar
  • 3
0 votes
1 answer
163 views

object is undefind when passing from blade to vue component using props

I'm trying to pass an array from async method in the controller to a vue component using props through the blade, but I'm getting undefined when I try to console.log it in the vue component, this is ...
Amjad Alarori's user avatar
2 votes
1 answer
469 views

VueJS - how pass input parameters to the single page component

I use Laravel, and I wan't to pass parameters to the single page VUEJS component from blade.php template. <example-component :userName="{{ Auth::user()->name }}"></example-...
Sergey S.'s user avatar
  • 157
0 votes
0 answers
311 views

Pass Laravel Controller Function in VueJS props

Can someone help me how do I pass this function in Vue "props"? public function showBusinessIntelligenceModule($store_id = NULL) { $stores = Stores::findOrFail($store_id); $...
Matthew's user avatar
  • 11
0 votes
0 answers
191 views

Understanding Props Passed to router-view for Vue Child Component, Prop Data Not Rendering

I know this has been asked in several other posts on StackOverflow, though I'm still running into a wall with trying to solve my issue. I'm very much new to Vue and trying to learn this stack but ...
gravv's user avatar
  • 13
0 votes
1 answer
374 views

Can't update data in Vue.js using event.target.href

I am trying to update my Vue.js data (linkClicked). I have URLs being passed into my Vue component as props from Laravel. These props are attached to multiple anchor tags on the page with various ...
ImranR's user avatar
  • 516