Lomkit / laravel-rest-api

Generate Api in seconds
https://laravel-rest-api.lomkit.com/
MIT License
297 stars 18 forks source link

Impossible to add validation rules to 'attach' operation #103

Closed FXLaroche closed 2 months ago

FXLaroche commented 4 months ago

Description

It is currently impossible to create validation rules when performing an attach operation. At first I thought I could put my rules in the updateRules method of the resource but it doesn't do the trick. It would be a useful addition to your package to improve the security of the requests.

GautierDele commented 4 months ago

As Laravel Nova is doing, good idea, thanks !