title: How to restrict ajax call on every page in Laravel 5.2?
body: <p>I am using Laravel 5.2 there are some of ajax call which are calls on every page. Now I want to ajax call required pages only. </p>
  
  <p>My Routes </p>
  
  <pre><code>Route::auth();    
  Route::get('/', 'Auth\AuthController@getLogin');
  Route::post('auth/login', 'Auth\AuthController@postLogin');
  Route::get('users/client', 'ClientController@showClients');
  Route::get('users/client/add', 'ClientController@addClient');
  Route::get('dash/manage_graph', 'BoardController@showPowerManage');
  // My ajax call 
  Route::get('dash/manage_chart/chart/{request}', 'DashboardController@powerChart');
  Route::get('dash/manage/chart/{request}', 'DashboardController@powerChart');
  </code></pre>
  
  <p>My data.js file </p>
  
  <pre><code>$(document).ready(function() {
  $.getJSON('dash/manage_chart/chart/' + request, function (data) {
          $('#dg_hours').html(data);
      });
  $.getJSON('dash/manage/chart' + request, function (data) {
          $('#dg_sec').html(data);
      });
  });
  </code></pre>
  
  <p>Above is my routes. In my routes I am not using any Middleware for this. Now I am facing problem is my ajax call load on every page. Because of loading ajax my single page load time is more than 50 seconds. Now I don't know how to handle this. Please suggest me.</p>