Middleware Laravel and Vue js

0

I integrated Laravel and Vue everything that is in vue js begins with the route link the / # / is added, I am having problems so that I can recognize laravel middleware in vue, I use:

Route::group(['middleware'=>'auth'], function () {

    Route::get('/profile', [
        'as' => 'dos.vers',
        'uses' => 'ThumbnailController@view',
    ]);

});
    
asked by Briant 04.04.2017 в 17:02
source

1 answer

2

To remove the # of the routes, add mode: 'history' :

const router = new VueRouter({
  mode: 'history',
  routes: [...]
})

More information: link

    
answered by 26.04.2017 / 07:59
source