I have a command that fetches data from an API and push it to my local database using an artisan command. As it's a command, I don't have a Request.
How do I validate the model data? I need to check if the description has only 10 characters and if the due_at date is greater than today.
Rely on database validation is not an option.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire