aaronlord / laroute

Generate Laravel route URLs from JavaScript.
MIT License
796 stars 138 forks source link

Laravel laroute generate uri in index should be empty #33

Open MatheusNaldi opened 8 years ago

MatheusNaldi commented 8 years ago

Laroute generate index in laravel route->controller should be empty, but it's returning "/index".

e.g:

$route->controller('admin', 'AdminController', [
    'getIndex' => 'admin.index',
    'getPayment' => 'admin.payment'
]);

The uri in getIndex is returning "admin/index", but the correct should be only "admin" if I don't pass any parameters in controller.