Posts by Guilherme Tutilo • 39 points
3 posts
-
1
votes1
answer161
viewsQ: How to concatenate value into a dropdownlist in Laravel 5?
How to add the first default value to a dropdownlist? I tried to do this way: {!! Form::select('Usuario.est_id',array('null' => 'Selecione') + $estados, null, ['class' => 'form-control']) !!}…
-
-1
votes1
answer781
viewsA: Laravel 5 improve filter
I did it better: public function index() { $usuariosBuilder = new Usuario(); if(Input::has('Usuario_nome')) { $usuariosBuilder = $usuariosBuilder->where('Usuarios.nome', 'like',…
-
2
votes1
answer781
viewsQ: Laravel 5 improve filter
I created a filter in my view index, when I put something inside one of the filter inputs enters ifs but I think it’s not good this way, someone knows somehow better? public function index() {…