In a Table, data is displayed but when I click on the page number provided by the laravel vue pagination it shows me that same page number 1. Well, the main issue is page number is not passed into the function(Composable API). Template Table In : data is passed the data that comes from composable API and in the @pagination-change-page
Tag: vue.js
Mercure issues with changing JWT secret key
im having problem with my Mercure App, Im running via docker-compose image of mercure: and in section with MERCURE_PUBLISHER_JWY_KEY and subscriber key im having it set by default to !ChangeMe! and it is working as it should. And my subscriber in Vue is working when sign part of JWT is !ChangeMe! eg: But I want to make it secure, so
How to upload file using laravel vue api?
i’m trying to make a form with the ability to upload files using form i’m able to store string, int data but i’m a bit lost with the way that i need to provide for the controller and the view this is the add template: this is the database table: controller: model: app: i can provide more code if necessary
How to call Laravel Model function with parameter into Vuejs (for calculating stock Qunatity)?
I have three model 1.Fertilizer, 2. Fertilizer Stock, 3.Fertilizer Sale. 2 & 3 have foreign key relation(fertilizer_id) & mysql quantity column . I want to calculate individual Fertilizer stock quantity in my fertilizer model and append with fertilizerController in inertia index page. What’s Wrong with my code? Controller Model Stock Function Answer Add this on your Fertilizer Model.
Error 401 after successful login to Laravel using jwt
In my Laravel project, I use jwt for user authentication.I successfully login and receive the token. I send the token with the Barear prefix in the header but I get a 401 error.Meanwhile, my project works well on localhost, but it has this problem on cpanel hosts.My codes are below in config/auth.php and in configjwt.php ]; my web route: my
How to change value from select dropdown in database
i want to change value from my dropdown but i’m begginer and i’m little lost. This is my Controller method: This is my dropdown in vuejs file: and this is my method in vue js: the route is fine, the problem are probably my methods. Answer I think you should pass right values to your onChanges method. When you use
Is the other way to use Vue component in Laravel?
I have a Laravel project and I would like to integrate Vue. I’m not getting any error bu the Vue components just not loading up. I guess I’m making somekind of logical mistake if I’m not getting an error. index.blade.php: App.js: routes.js: audit/index.vue: Answer Have you added configuration in the webpack file for Vue components? Refer Laravel Mix Vue The
the owlCarousel does not work properly, it does not move and I cannot advance the page either
The carousel does not move, it already initializes, check the libraries it is in perfect order; but even so it does not move by itself and not by touching the buttons. I have the latest version of the owlCarousel and jquery library. I tried updating libraries and I also tried using the min and normal libs. I did not make
Lumen: The new record with default values was added to database
I’m new to PHP and I’ve tried to make the small test full-stack project. I have Vue.js app on the client (frontend) and PHP (Lumen) on the server (backend). The code looks as following: Client: Vue component: Server: Router: Model: Controller: Database: Debug session on server side – $request value: The issue is the new record was added to database,
Laravel orWherehas filtering relationship with multiple columns
I’m facing a problem with search filtering, Project is with Laravel, Inertia js, Vue js I want to show all invoices with Recipient Information on it which has a foreign key on it to make this possible, also I have relationships on my model Data on Front-end end are showing successfully but when I try to filter it show’s me