Posts by Pedro Dias • 91 points
3 posts
-
1
votes2
answers166
viewsA: Function does not change the variable
There are some conceptual errors in its implementation 1 - functions and methods return in the first return executed, soon, everything that comes under return $sword will not be executed 2 - Return…
-
3
votes1
answer309
viewsA: Filter with select in php
The name of the selected fields is the same, so the last one displayed on the screen and filled in is the one stored in $_POST["search"], so it’s not working. If you print your query you will notice…
-
2
votes1
answer444
viewsA: Error message via middleware Laravel
You are passing only one message without specifying the error name. try like this : ->withErrors(['active'=>'Usuário precisa de aprovação']);