Posts by Richard Feliciano • 114 points
4 posts
-
4
votes5
answers10782
viewsA: What is a Mysql Transaction for?
A transaction server to ensure a set of querys is executed. Imagine a transaction between current accounts, take money from one account and deposit into the other, You will have to: Subtract account…
-
2
votes2
answers901
viewsA: Templates for Laravel
I have done what you are doing a few times and in my case I thought better to punch the whole theme, each corresponding piece there is some element of the layout(header, footer, sidebar etc.) this…
-
4
votes3
answers3696
viewsQ: Merge arrays in php
Someone knows something that turns it: $name = [0=>'name1',1=>'name2']; $email = [0=>'email1',1=> 'email2']; in this? $data = [ 0 => ['name'=>'name1', 'email'=>'email1'], 1…
-
-2
votes3
answers992
viewsA: Return only the newest record of each author
Order dates in descending order: Discursos::take(10)->distinct('membro_id')->orderBy('data_discurso', 'desc')->get();