Routing issue with Laravel 4 and AngularJS in html5Mode
问题 I am creating a RESTful application with Laravel 4 as backend and AngularJS as frontend. I want to use routing from Angular. routes.php in laravel are set up like this (with one group /api, but it is not necessary) Route::any('{all}', function ($uri) { return View::make('index'); })->where('all', '.*'); My routes in Angular are $routeProvider. when('/', { templateUrl: 'views/test.html', controller: 'homeCtrl' }). when('/test', { templateUrl: 'views/test.html', controller: 'homeCtrl' }). when(