Skip to content
Advertisement

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

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

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,

Advertisement