Questions tagged as 'laravel-blade'

1
answer

jquery does not work on foreach laravel blade

The jquery script works if you put it out of the foreach, but qd put it inside it does not work and does not show any errors on the console: <div class="box-indicated"> @foreach($list_indicated as $indicated)...
asked by 12.01.2018 / 17:41
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

Stylization of views - Laravel

By default of Laravel, the welcome.blade.php view comes with styling in the view itself and not in a separate file. I would like to know if this practice of styling the view in the same file is correct or should be stylized separately....
asked by 15.12.2017 / 01:56
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

Rendering templates with blade

My problem is when it's time to render from this section: The part: @include('admin::layouts.includes.footer') is outside the div # wrapper, could someone tell me why and how do I get inside? layout.blade.php <div id="app">...
asked by 16.11.2017 / 10:53
2
answers

Error making relationship with laravel

   Call to undefined method Illuminate \ Database \ Query \ Builder :: BeltTo () My Models <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Imovel extends Model { //definindo nome da tabela na migra...
asked by 02.08.2017 / 20:06
1
answer

How to pass data from two tables in a View?

I'm trying to pass data from two tables ( SQL ) to a HTML table structure. When I try to pass my View , Laravel does not recognize the relationship method. View - atualizador.blade.php @extends('layou...
asked by 17.03.2017 / 18:29
1
answer

Is there any way to render a Laravel view to a string?

I would like to know if there is any way to save the return of a view in Laravel to a string . Generally, we return to view in order to "print" the result of an action on the page: function getIndex() { return view('hell...
asked by 24.08.2016 / 15:14