Answers for "how to check react route in laravel"

PHP
0

laravel route Accessing The Current Route

$route = Route::current();

$name = Route::currentRouteName();

$action = Route::currentRouteAction();
Posted by: Guest on July-24-2021
0

how to route react from laravel

You can return your index page and browserHistory of React will handle anything else.

Route::pattern('path', '[a-zA-Z0-9-/]+');
Route::any( '{path}', function( $page ){   
     return view('index');
});
Posted by: Guest on November-21-2021

Code answers related to "how to check react route in laravel"

Browse Popular Code Answers by Language