Posts by Davi Alves Bezerra • 78 points
5 posts
-
1
votes2
answers40
viewsA: Sum result of Count, is it possible?
Just use an accumulator variable: $contador = 0; foreach(...){ $count = $occurrence->people_involved->where('tipo_de_envolvimento','VÍTIMA')->count(); $contador = $contador + $count; }…
-
1
votes1
answer130
viewsA: Where do Eloqent Laravel Doesn’t Work
He’s not getting it wrong. He’s getting exactly what’s in the __construct public function __construct() { $this->datalocacao = "2019-01-01 00:00:00"; $this->datadevolucao = "2019-01-01…
-
0
votes1
answer106
viewsA: Return data from different tables in a view - Laravel (Solved)
Your return must be so: return view('user.index', [ 'intros' => Intro::paginate(5), 'abouts' => About::paginate(5), 'skills' => Skill::paginate(5) ]); For a better understanding, read about…
laravelanswered Davi Alves Bezerra 78 -
2
votes1
answer88
viewsQ: Laravel 5.7 - Side bar control via Controller
I’m developing a site that contains a sidebar that will show some information to users. This information is in a database, so I have to access it via controller and then send it to view. It turns…
-
2
votes1
answer1224
viewsA: SQL Server connection in the Laravel
I was able to solve it this way: Open SQL Server Configuration Manager. Go to SQL Server Network Configuration -> TCP/IP. Switch to Enable and Ipaddresses Abla, Ipall leave TCP Dynamic ports…