laravel routing based on convention
<p>I'm trying to setup a simple routing system based on convention.
My app will have this structure</p>

<pre><code>Http
--Controllers
----Admin
------User.php
----Books
------Add.php
----etc...
</code></pre>

<p>I want to be able to add new Folders and controllers without adding routes manually to the web.php file.
For example I want the route to respond to /Admin/User URL with User.php controller.</p>

<p>I'm trying something like this, but I don't understand how to write the internal router...</p>

<pre><code>Route::any('/{module}/{action?}', function($module, $action = 'index') {
    Route::get('*',$module.'\'.$action.'@index' );
});
</code></pre>

<p>It seems that Rout:get('*'... never matches.</p>

<p>PS the controller namespace is correct and I reloaded with composer. 
The controller works if called harcoded.</p>

<p>I tried also to escape '\'</p>

<pre><code>$r=$module.'\\'.$action.'\\'.$action.'Ctl@index';
Route::get('/',$r );
</code></pre>

<p>But no result. The route is intercepted but nothing i served</p>