[Vuejs]-Open up a modal in blade when click on a Vuejs button

0👍

use clink event on button and call function.
in that function link router.js file’s function.

in router.js, function should look like this,

{
    path: '/yourpath which is in api.php or web.php have',
    name: 'same as path name to remember easily',
    meta: { 
        requiresAuth: true,           //authentication require
        roles: ['superadmin','admin'] //roles to be define
    },
    component: () => import('../your vue file path/myFile.vue'),
},

after this, create route in in api.php file and call function of that controller.
in controller view your blade file code like below.

view(‘.blade filename’);

and it’s done thank you.

Leave a comment