I perform various eloquent statements throughout my app. eg:
User::find($id)->update($data);
Or:
User::create($data);
Or:
User::paginate(10);
I presume the best way to tackle potential errors is to use try/catch? If so, what should I be catching for eloquent errors?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2fHUrHn
via IFTTT
Aucun commentaire:
Enregistrer un commentaire