Skip to content

4.10.0

Choose a tag to compare

@binaryk binaryk released this 18 Jan 13:52
· 30 commits to 4.x since this release
4c57a3c

Added

  • For the BelongsToMany, MorphToMany fields now you can specify validations rules using:
BelongsToMany::make('roles', 'roles', RolesRepository::class)->validationCallback(fn(Request $request) => ....))
  • Added ->unique() to BelongsToMany kind fields, so you can validate unicity of your pivot table entries.
  • Fixed $withs property for repositories when force eager loading.