title: Laravel 5.3 get request value in route file web.php
body: <p>Im trying to access request in web.php file but cant find a function to call. Request is passed automatically to all controller functions but I want to perform action common for all routes so I wanted to do it in route/web.php file that is new route file in Laravel 5.3.</p>
  
  <p>i tried </p>
  
  <pre><code>$request = Route::getCurrentRequest();
  </code></pre>
  
  <p>but it returns null.</p>