Questions tagged as 'laravel'

1
answer

Select with Laravel / Eloquent

I have the following select in my controller: $turmaAlunos = DB::select(' SELECT alunos.ST_ALUNO_ALU, alunos.ID_ALUNO_ALU FROM alunos WHERE alunos.ID_ALUNO_ALU NOT IN ( SELECT turma_alunos.ID_ALUNO_ALU FROM turma_alunos...
asked by 14.08.2017 / 03:48
2
answers

Laravel eloquent returning array array

I have this query using eloquent $data= \App\Logs::select('id', 'created_at') ->get() ->groupBy(function($val) { return Carbon::parse($val->created_at)->format('d-M-'); })->toArray(); and it retu...
asked by 07.07.2017 / 17:23
2
answers

Result field name instead of id in Laravel 5?

I have a relationship in Laravel but when I make an query comes the id and not the field name. Model Evento public function tipo_evento() { return $this->hasOne('App\TipoEvento','id','tipo_evento'); } Mode...
asked by 12.06.2017 / 18:35
3
answers

Bootstrap tab panel - How to go to a specific tab?

I have, in PHP , a method whose code returns values, passing them to a View , as in the block below: return view('PesquisaView') ->with('clientes',$resultadoClientes) ->with('advs',$resultadoAdvs) ->with('bp...
asked by 27.06.2017 / 15:30
2
answers

LARAVEL Login by email or username [closed]

Hello, I am developing an application in Laravel 5.2. * and need to implement a login system by username or login, does anyone have any idea how to configure or do this type of method?     
asked by 11.06.2017 / 19:08
1
answer

How to host a laravel site on windows server?

The computer where I want to host the site developed in laravel is in another network. I put the whole site on the server and ran the command php artisan serve --host MEUIP --port MEUPORTO When I test on another computer does the browser re...
asked by 19.08.2017 / 18:33
1
answer

Laravel SQL returning with interrogation?

I am doing a query on Laravel and it is returning the date with the following value. select 'campo' from 'tabela' where 'campodotipodata' = ? Well it returns SQL , it follows code in LARAVEL $vardata = date('Y-m-d'); $...
asked by 28.07.2017 / 02:48
1
answer

Mysql Connection with Laravel 5.0

I am making the connection to the database mysql with laravel using the following code in the file database.php 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost...
asked by 04.08.2017 / 16:47
1
answer

Error date Laravel

I'm trying to get the values from the database and display on the screen, however it gives me the following error message: ErrorException in helpers.php line 531: htmlentities() expects parameter 1 to be string, object given (View: /var/www/re...
asked by 11.04.2017 / 19:18
1
answer

Uploading image Laravel 4.2 and Ajax

I'm trying to upload an image, to save it along with the rest of the fields, but when I press the save button, the image field goes empty .. This is the Form <div class="panel"> <div class="panel-heading"> <h3><i...
asked by 05.05.2017 / 17:56