[Vuejs]-How use Regex in Localization Laravel 5.4 with Vue JS

0👍

It solve now. I just use this code to solve this problem.

if ( ! request()->ajax() ) {
Route::group(['prefix' => 'posts'], function () {
    Route::get('/{vue?}', function() {
      return view('main');
    })->where('vue', '[\/\w\.-]*');
   });
 }

Leave a comment