title: Combine AngularJS and Laravel Routing
body: <p>I am using AngularJS and Laravel for my web app project. My routing look like this:</p>
  
  <p>AngularJS:</p>
  
  <pre><code>angular.config(['$stateProvider','$urlRouterProvider',function($stateProvider,$urlRouterProvider) {
      $urlRouterProvider.otherwise('/');
  
      $stateProvider
      .state('home', {
              url: '/',
              templateUrl: '/admin/dashboard'
          });
  }]);
  </code></pre>
  
  <p>Laravel:</p>
  
  <pre><code>Route::group(array('prefix'=&gt;'admin', function(){
      Route::get('/', ['as'=&gt;'admin.main',function(){
          return view('main');
      }]);
  
      Route::get('/dashboard', ['as'=&gt;'admin.dashboard',function(){
          return view('dashboard');
      }]);
  });
  </code></pre>
  
  <p>I am facing problem that I would need to declare route path at 2 place. One at Angular and the other one at Laravel. So, every time when I add new route or change route path, I will need to work on 2 place. This will become something tedious and hard to maintain when the app grows. </p>
  
  <p>Is there anyway that I only need to set the route URL at one place, but will be effective for both?</p>