MostafaGamal MostafaGamal
3
What is the best practice to persist auth user info in SPA? Is it a good practice to store it in local storage( i.g. localStorage.getItem('authUser') ), or widow object ( i.g. window.user) ? Should I send a request to the server every time I want to...
Glitter Grace Glitter Grace
3
I have a page where I'm looping and for every product that I have and what I would like is for a count of the rows that I have. So for example if I have 3 rows then I would like this <tbody> <tr> <td> 1 </td>...
Ifrit Ifrit
1
So I need to grab my product's name so I can save it with a bunch of other data, the problem I have is that I don't know how to add both the v-model and value. Here is my code <template> <div class="content-header">...
Ifrit Ifrit
3
I'm trying to create a page where my product's amount will automatically get calculated, the problem I'm having is that my computed property isn't calculating the amount. Here is my code <template> <div class="content-header"&g...
pc579 pc579
10
Hello All, I recently installed Laravel / Breeze / Inertia and as a first try I decided to show Vue version on the Welcome page (like Laravel et Php versions) I didn't succeed, neither I found st valuable on the net (I never work with Vue.js before)...
pc579 replied
Solved
talelmishali talelmishali
0
Hello, For some reaseon I do not get errors back when using post with $inertia.form. this.form.post(route('orders.store'), { onSuccess: (data) => { console.log(data) },...
tarang19 tarang19
5
I'm trying to add functionality to input date fields so as when the users enters in digits, slashes "/" get automatically added. (text filed) <v-text-field v-model="a" label="...
Ifrit Ifrit
0
I'm trying to calculate a value from 2 input boxes and then get the subtotal of them and the issue I'm having is that when I type in a number in the first box my output is NaN instead of 0. Here is my code <template> <div class="con...
HubertVanD HubertVanD
7
I'm following the laracast on building a forum. Am currently in episode 32. I am using Laravel 7. When I do everything as explained, and edit a reply, and then push the "update" button, I get the wrong message form the Chrome network inspe...
Glitter Grace Glitter Grace
2
I have a page that is supposed to calculate the total amount of items in a cart. The problem I'm having is that I'm not sure how to add it. Here is my code <template> <div class="content-header"> <div class="...
Ifrit Ifrit
1
I'm trying to create a form that will update a product's pricing when adding the unit amount of the product and a price of the product, but when I type into one of my textboxes I end up getting this error The specified value "unit_product_1&quo...
JulioArkanari JulioArkanari
3
I'd like to use Inertia to use Vue in a Laravel 8 application, but I don't understand if I have to run the scaffolding command to use it. The problem is that this command creates a lot of other files that I don't use, and I would like for it to just...
Ajvanho Ajvanho
3
<div v-if="job.link"> {{job.link.id}} <edit-links :id="job.link.id"></edit-links> </div> "id": 4, "title": "Cleora...
tykus replied
Solved
Ajvanho Ajvanho
1
I made condition to show div only if have link, but I get it an error Cannot read property 'slug' of null <div v-show="job.link" class="text-sm text-gray-500"> {{job.link.slug}} </div> {...
tykus replied
Solved
Hi, I'm new to laravel, started learning just a few days ago. So 2 days ago I created a new jetstream project, it got installed with vue 2 But today when created another Jetstream project, it got installed with vue 3 I tried breeze with inertia, but...
Stingoosha Stingoosha
3
Hi, In my project I use Laravel with Inertia. I would like to open some product from different pages (for example, from main page, catalog or search page) and have possibility to return to this page clicking "Back" link. I've tried to use &...
Ifrit Ifrit
4
I'm trying to get the value of my select but it isn't being picked up and I'm not sure why. When I check my console I have a null. Here is my code. <template> <div class="content-header"> <div class="containe...
jaysheel jaysheel
1
Hi, I would like to build a dynamic form. Here is the workflow I am thinking off I have several vuejs components each with different form fields and respective logic. Click on "Add" button which will add a drop down field to the scree...
MUM MUM
0
Unfortunately, I'm not getting any further with my problem at the moment and hope that someone has one or two helpful hints for me! I would like to use the Quasar Framework in a project. The project was completely rebuilt with curl -s https://laravel...
Ifrit Ifrit
2
I'm using vue with my laravel site and when I click on a button I get taken to another page, the issue I'm having is that I'm not getting my info from my props. When I console.log(this.user) in my CreateProduct.vue page I get a null Here is my code M...
Prabodhana Prabodhana
0
Versions nuxt: 2.14.6 node: v15.9.0 What is Expected? After upload every updates file to shared hosting inside dist folder. browser will load new version What is actually happening? 'm using shared hosting to host the project. I'm using nuxt gen...
Solvando Solvando
4
This input has default value from a bind. I want to call a method without hitting enter, typing or submit. Just to take its value every time when bind is changed. <input type="text" v:bind="anotherValue" @change="callThisF...
chrisgrim chrisgrim
3
Hi, I was having a strange issue which I think I just figured out and I am looking for how other developers deal with it. I have a search bar which does an axios call to my laravel backend to do an elastic search. <v-select v-model=&qu...
lemmon lemmon
1
I just wan a couple of vue components so I am trying to avoid installing inertia. I would like to use breeze with blade for auth. here is my error: $ npm run dev > @ dev C:\wamp64\www\breezevue > npm run development > @ development C:\wam...
lemmon replied
Solved
deep88 deep88
1
I want to create the route in Vue js which has appended static text for making the URL user friendly and SEO-friendly. I want to create a URL like "/artist/1-artist-name-here" { path: "/artist/:id", component: ArtistPage,...
JoaoHamerski JoaoHamerski
1
I would like to set a object property inside a for loop and watch for those changes, but somehow Vue simply doesnt listen to all changes on watch prop. Here is my test code to simplify my issue (https://jsfiddle.net/hn2wepc9/). If you click on the bu...
successdav successdav
3
Uncaught TypeError: Vue.component is not a function . The error is generated in the following line of code Vue.component('Flash', require('./components/Flash.vue').default); I am importing Vue on bootstrap.js window.Vue = require('vue'); I get this...
josegus replied
Solved
GoldeNx3 GoldeNx3
1
Hello! I'm starting my journey with Laravel 8 + VueJS. I have knowledge about Laravel, but about Vue not. I have some questions. I'm building project with backend Laravel and frontend Vue. I have routes made in Vue (So it will be SPA site (or MPA?))...
jorisvanandel jorisvanandel
1
Hi, I have a typical datatable with users that I want to filter using a filter component. return Inertia::render('Users/Index', [ 'users' => Inertia::lazy(fn () => User::get()), ]); It makes sense to use the replace function that Inertia prov...
msslgomez msslgomez
2
Is there a way to chunk or separate the items in a v-for to show another element in between ? Something like this https://www.sirkensingtons.com/product/mayonnaise they have the first 3 items then another element and then the rest of items? This is m...
samar92 samar92
1
i am trying to update input field using vue , but after updateing the value didnot change in front . <div class="user-profile-ov"> <h3> <a href="#" title="" class="overview-open&...
JoaoHamerski JoaoHamerski
2
For example, i have something like this: data: () => { layers: [ {name: 'Something', index: 0}, {name: 'Something again', index: 1}, ] } I would like to add a computed property for every name property of my layers array, of course it wi...
trin replied
Solved
JoaoPedroAlves JoaoPedroAlves
4
I got a straightforward question about the best practice for reusability of my stylings... Texts elements such as spans, titles and paragraph, which won't have special behaviors, should be a separated component? I mean, basically I'm not sure if I sh...
Rod2rick Rod2rick
14
Hi, I would like to set up a CRUD, in Laravel and so far the Create, Read and Delete have worked fine. I get the error Error: Request failed with status code 500 when i want to update the product element. Here is my code: 1- my update code in vue upd...
phasee phasee
2
Hello, I have created a VueJs single page application using VueRouter with Laravel as the backend. I have a catch-all route in the Laravel web.php: Route::get('/{any}', '[email protected]')->where('any', '.*'); and I have my app.js routes setup...
Create a New Discussion Button