codeigniter-static-laravel-routes
codeigniter-static-laravel-routes copied to clipboard
Issue when using prefix with resources
Hello there and thanks for this awesome add-in. I have noticed a little issue when using prefix and then resources like so:
Route::prefix('admin', function() {
----Route::resources('users', array(
--------'module' => 'users',
--------'controller' => 'admin',
--------'constraint' => '([0-9]+)'
----));
});
I get the following which is not what I want:
users/admin/index/$1
users/admin/create_new/$1
users/admin/edit/$1/$2
users/admin/show/$1/$2
I fixed by commenting line 292-297 (here) hoping that I did not mess something else doing this. And now i get this:
users/admin/index
users/admin/create_new
users/admin/edit/$1
users/admin/show/$1