codeigniter-static-laravel-routes icon indicating copy to clipboard operation
codeigniter-static-laravel-routes copied to clipboard

Issue when using prefix with resources

Open bkader opened this issue 6 years ago • 0 comments

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

bkader avatar Oct 28 '17 15:10 bkader