Laravel routes ending with '.php' not working
<p>Using Laravel, I want to create a route to replace functionality of a legacy URL that used to be a PHP file, but whenever I create a route that ends with <code>.php</code> it does not recognize the route and I get a 404.</p>

<p><code>Route::get('test.php', function(){return "test";}); // Gets a 404  error.</code></p>

<p>However other routes with extensions seem to work.</p>

<p><code>Route::get('test.txt', function(){return "test";}); // works fine</code></p>