mardi 13 novembre 2018

How to make redirection to some vue form from laravel's control?

In my Laravel 5.6 application with vue.js 2.5.7 I and vue-router 3 I use Socialite for login into the system and in case of success I need to make redirection to some vue form with success message and next options available.

For this I make redirection like:

    $url= $site_hosting . "/home";
    return redirect()->route($url, [])->with([
        'text'   => 'google_new_user',
        'type'   => 'success',
        'action' => 'successful_login'
    ]);

where url has value like

example.com/home

the question is that I do not know how redirecting from Laravel control to point to Vue component, defined in resources/assets/js/app.js file as

const routes = [
    {
        components: {
            notFound: NotFound,
        ...

How can it be done ?

Thanks!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire