andersao / andersao/l5-repository

Attributes that are $hidden can't be mass assigned when using validators.

Aperta
#450 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
PHP
Stelle
4.2k
Fork
880
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

If you have an attribute e.g. 'password' that is in $fillable and $hidden, the attribute will be ignored if you have a validator set on the repository.
If you do:

```php
protected $rules = [
"password" => "required|min:8",
];
```

You will get an exception whether or not a password was in your payload/user data or not.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.