Posts by Sallo Szrajbman • 63 points
4 posts
-
1
votes0
answers35
viewsQ: Getting information from a website via jQuery / Javascript
I need to get information from a website every X minutes. I’m testing locally with a fixed HTML but the idea is to make a request every X minutes, get the information and save it somehow. I saw in…
-
0
votes2
answers79
viewsA: How to bring Model by IDS and sort at the same time
I was able to sort it this way: $postIds = []; foreach ($results as $result) { array_push($postIds, $result->id); } $posts = Post::find($postIds); $sorted = array_flip($postIds); foreach ($posts…
-
0
votes2
answers79
viewsQ: How to bring Model by IDS and sort at the same time
I am with the ids returned from an immense query to bring the posts with a search term... Already working bring the posts through the Model by the selected IDS but it always brings sorted by ID and…
-
5
votes1
answer685
viewsQ: Catch the Average of a Relationship Table FieldMany to Many Laravel Eloquent
I have a relationship Many to Many and in the relationship table the field "value". How do I bring the media from this field using the Eloquent? Example: Tabela A a_id Relationship Table a_id c_id…