Skip to content

Instantly share code, notes, and snippets.

@willchambers99
Created March 4, 2020 11:12
Show Gist options
  • Save willchambers99/e9d854067765d1d0c802dd6025dc1dd3 to your computer and use it in GitHub Desktop.
Save willchambers99/e9d854067765d1d0c802dd6025dc1dd3 to your computer and use it in GitHub Desktop.
Redirect any laravel route to controller that returns view for SPA.
Route::get('/{any}', 'SpaController@index')->where('any', '.*');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment