Posts by William Fernandes • 21 points
2 posts
-
0
votes1
answer26
viewsA: How do I use the explode to limit which parts of a string should appear in the view?
Hello. If you only want the first name of a string, the code {{ explode(" ", $registro->nome)[0] }} should solve the problem as it takes the first value of the array returned by explode. But I…
-
2
votes1
answer79
viewsA: Array being rewritten completely within foreach
Hello! Actually I believe that your code is running "correctly", but what is causing this behavior in its console.log() is to call him after the .get() which is asynchronous because it returns an…