Posts by Laah Lima • 123 points
3 posts
-
1
votes3
answers1130
viewsQ: How to format a php array
I’m doing an SQL query in my model and in the controller, I’m printing the values of array. The exhibition is like this: Array ( [campo1] => 98 [campo2] => SOLO [soma] => 1 ) Array (…
-
6
votes1
answer132
viewsA: Comparison of hours in Laravel
This was the final answer I got(working properly): $lusLeadUpdateStatus = LusLeadUpdateStatus::select('created_at') ->orderby('created_at', 'desc') ->first(); if ($lusLeadUpdateStatus) { $now…
-
5
votes1
answer132
viewsQ: Comparison of hours in Laravel
I’m trying to create a method that will return the amount of minutes since the last insertion in the bank. That’s the way I did it, but I’m making a mistake: $now = Carbon::now(); $minutes =…