Questions tagged as 'laravel-5.3'

0
answers

Version 5.3 Laravel with php 5

Good afternoon. I use Laravel version 5.0 and one of the requirements of this version is that php has to be greater than or equal to 5.4. So far so good, my php installed is 5.6.32. But I wanted to start using version 5.3 of Laravel and th...
asked by 24.01.2018 / 20:40
1
answer

SQL query for Laravel

This is the example of the query sql , I am trying to do the same query in Laravel if you can help thanks.    SELECT p.nome,(select min(op.preco_unitario) from opcao_produto op where p.id = op.produto_id) preco from produto...
asked by 11.01.2018 / 20:48
0
answers

How to save multiple inputs with the same name in Laravel?

How to save multiple inputs with the same name in Laravel ? {!! Form::text('dependente[]', null, ['class' => 'form-control']); !!} {!! Form::text('dependente[]', null, ['class' => 'form-control']); !!} {!! Form::text('dependente[...
asked by 10.01.2018 / 14:15
0
answers

Recover data for Controller in Laravel

I'm developing a web application with Laravel and on one of my screens I have a Customer and Contact relationship, where a client can have multiple contacts. So in my View I have a method to go adding my contacts to a table. for example: I in...
asked by 26.12.2017 / 17:01
1
answer

Check if record already exists, if already exists just link

I want to check if the address has already been registered, if it is already registered I just want to link it to a civilian, but if it does not already exist I want to register the new address and then link. The relationship is 1 civilian has O...
asked by 21.12.2017 / 17:08
1
answer

Error in making listing

Trying to get property of non-object: @foreach($civis as $civil) <tr> <td>01</td> <td>{{$civil->matricula}}</td> <td>{{$civil...
asked by 18.12.2017 / 17:15
1
answer

Register N for 1 and N for N?

How do I sign up for a relationship 1 for N and N for M , I am doing this but : $endereco = new endereco; $endereco->complemento = $request->complemento; $endereco->logradouro = $request->logradouro; $endereco->bairro = $r...
asked by 18.12.2017 / 20:55
1
answer

Error in making listing

Trying to get property of non-object: @foreach($civis as $civil) <tr> <td>01</td> <td>{{$civil->matricula}}</td> <td>{{$civil...
asked by 18.12.2017 / 17:15
0
answers

Accessors and Mutators in Laravel 5.3

How do I run my own method in Laravel 5.3 Accessors and Mutators? It works with PHP's own methods, but if I try to use a method of mine, it gives error. I've tried it like this: public function getUsuTelefoneAttribute($value) { $general...
asked by 08.12.2017 / 19:35
0
answers

Error - Trying to get property of non-object - Laravel

I changed my production bank, so the production base returns the objects my local database already appears in this message MyController project /** * Lista todos os projetos ativos * @access public * @param NULL * @return arrProjetos par...
asked by 06.12.2017 / 18:10