andersao / andersao/l5-repository
Fillable & Guarded attributes
Offen
- Vorherrschende Sprache
- PHP
- Sterne
- 4.2k
- Forks
- 880
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
How to save protected attributes?
$this->files->create($request->input()); // Data from the input form ...
Fields in the database have no default values and must be filled. When saving through the repository, an error appears.
Of course, I can use the model directly. But why then repository?
Can I set generated by the data?
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.