Skip to content

1.2.1

Compare
Choose a tag to compare
@Okipa Okipa released this 13 Sep 09:55
· 113 commits to master since this release
  • Fixed the show, edit and destroy route generation, since Laravel 6 does handle differently the key given in the route() helper call :
// assuming your declared your edit route like this :
(new Table)->model(User::class)->routes([
    // ...
    'edit'    => ['name'=> 'user.edit', 'params' => ['foo' => 'bar']],
    //...
])
// the route will be generated like this during the table instantiation :
route('user.edit, [$user->id, 'foo' => 'bar']);
// instead of this way
route('user.edit, ['id' => $user->id, 'foo' => 'bar']);