Skip to content

1.2.3

Compare
Choose a tag to compare
@Okipa Okipa released this 13 Sep 12:34
· 109 commits to master since this release
  • The model is now directly passed to the route during the table show, edit and destroy routes generation instead of its id.
// 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, 'foo' => 'bar']);
// instead of this way
route('user.edit, [$user->id, 'foo' => 'bar']);