1.2.2
- Fixed params order when generating the table routes. The table model id was not positioned at first when declaring other parameters.
// with a route declared like this :
Route::get('user/edit/{user}/{foo}', 'UsersController@edit')->name('user.edit');
// and a table routes declaration like this :
(new Table)->model(User::class)->routes([
// ...
'edit' => ['name'=> 'user.edit', 'params' => ['bar']],
//...
])
// the route is now correctly generated and gives : /user/edit/1/bar instead of /user/edit/bar/1