Posts by Igor Albuquerque • 46 points
5 posts
-
0
votes2
answers76
viewsA: The form is not being saved in the comic
You are trying to search for a field that is not on the form. Input::get("User"); If you are a new user, you should create a new instance, for example: $user = new \App\User; $user->name =…
-
0
votes1
answer36
viewsA: Delete some array results
Use the function array_filter with an anonymous function to return items containing the desired value. Examples If the value "Yes" is always in position 2 of the sub-line: $novoArray =…
-
0
votes2
answers181
viewsA: How to include a string in the database from an input array with Laravel?
Information is missing, but I’m going to assume you’re using the Laravel 5.4 and want to save each item from array as a bank record. You need the property $fillable in the model to make a Mass…
-
0
votes7
answers1017
viewsA: Is there any way to know if an array is associative or sequential?
Associative or numerical array Use the function array_filter with the is_string function of callback. Then do a count. The array_filter function will return an array only with the associative Keys,…
-
3
votes1
answer254
viewsA: Logical Exclusion PHP
Logical exclusion is a practice to prevent data loss. Instead of erasing the database record, you signal in a field that that record is deleted. One thing to consider is that PHP itself does not…
phpanswered Igor Albuquerque 46