Validation in controller not working as expected #245
-
Please i am new to the package, I think i am doning somethings wrong, not just sure what. Above i have a DTO class, a Service class or Action class and a controller. I noticed that when i remove the Do i really need to have the DTO in the arguments, even though it's not doing anything in the controller. What am i doing wrong ? Below is my code
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Why don't you replace this line: $action($request->getData(), $request->user()); with this : $action(dto); ? |
Beta Was this translation helpful? Give feedback.
Why don't you replace this line:
with this :
$action(dto);
?