Skip to content

1.2.2

Compare
Choose a tag to compare
@Okipa Okipa released this 13 Sep 10:56
· 112 commits to master since this release
  • 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