Posts by José Postiga • 109 points
6 posts
-
2
votes1
answer45
viewsA: Check for string in a PHP multidimensional array
You can use the function every(), available on Ollections (https://laravel.com/docs/collections#method-Every): return collect($yourArray)->every(function ($value, $key) { return $value ===…
-
0
votes1
answer1097
viewsA: Errorexception Array to string Conversion
Since, by your signature of the method createClientStore(), you are using Form Requests, your request is automatically validated by Laravel, before you even enter your method. So your (wrong) call…
-
0
votes2
answers882
viewsA: Scheduling tasks in Laravel
The answer of Bulfaitelo is a possible solution and another would be to delay the processing of a Job. It’s a solution that requires little system intervention that you might have developed, as long…
-
1
votes1
answer1777
viewsA: "Expected Response code 220 but got an Empty Response" when sending email
Gmail has some security that may be affecting your code in ways that are not as clear as they should be. Do it like this: in your file. env, change the value of the variable MAIL_ENCRYPTION to tls,…
-
1
votes1
answer110
viewsA: Select only the first line of each user
Good afternoon. The query you put up is a bit confusing, because it is not noticeable if the "id" column refers to the unique identifier of a record in that table or if it is a user id. However,…
-
0
votes1
answer99
viewsA: Codeigniter - array pass to controler
In your explanation of a selection box with the name "user_id[]", but in your code you have: $id_usuarios_selecionados = $this->input->post('id_usuario'); I think it should be:…