Comments & Discussion
JN
I have a question one of you recommendations is not to pass " $request->all() " in order to create because is not unsafe ?
PK
Correct, here's an article about it: https://laraveldaily.com/post/laravel-request-all-security-issue
Hello, What if we have a relation in the products table to some category? Should we add in our migration some onDelete, onUpdate events? I got an error like this:
It depends on what you want to do on that update/delete events. One of the ways is to have
->cascadeOnDelete()at the end, so it would delete the related records.those constant from symphony i check the documentation in laravel but they are not mentionned there .