Questions tagged as 'laravel-blade'

2
answers

Relationship Laravel 5.2 Eloquent

Good morning, I'm having a problem in a relationship between tables with Elouquent (Laravel) I have two tables [clients / business_activities] (innoDB MYSQL) In the client table there is a field (FK) called: _commercial_id_id In the bus...
asked by 26.07.2016 / 16:05
1
answer

Return form with data after validator fails

I have a user registration form in Laravel <form class="form-horizontal" method="post" action="{{url('/usuarios')}}"> @csrf @if(session()->has('message')) <div class="callout callout-danger">...
asked by 18.04.2018 / 20:40
2
answers

Snappy does not render image in pdf?

I'm using Snappy to generate reports, however it's not rendering the image I load in my html, what can it be? Code: Route::get('/report', function(){ $pdf = PDF::loadView('templates.report'); return $pdf->stream(); });...
asked by 26.07.2016 / 14:50
2
answers

How to include values in the same section, without overwriting the previous one?

I have a view that includes another view . I want these same views to include a javascript in the section of view main called javascripts . So: #layout.blade.php <head>@yield('javascripts')</head> <...
asked by 26.04.2016 / 23:00
1
answer

Default field to select in illuminate / html

I have a problem and I have already searched the internet for the solution. No success! I have a form and inside it, a select filled in automatically: {!! Form::select('categoria_id', $categorias, null, ['class' => 'form-control']) !!}...
asked by 23.07.2015 / 20:53
1
answer

How to create functions available globally in laravel?

I would like to create functions that are globally available to reuse the code. What would be the best way to do this, in laravel ... The flow I need would be like this: I will receive a "Route" request    Then I'll process > "Con...
asked by 02.01.2019 / 00:12
1
answer

DIV lose the alignment if it is with a number of different rows

I'm trying to align some DIVs but I realized that when the DIV that is next to the other is not with the same line number in <p> it just loses alignment, I'm developing in Laravel using BLADE and implanted the VIEWS Follow the HT...
asked by 13.11.2018 / 19:44
2
answers

Operator "or" blade laravel does not work

When I try to use the "or" operator on the blade it renders the wrong and undefined variable. I'm calling it like this: {{ $confirmed or false }} But it's compiling like this: <?php echo e($confirmed or false); ?>     
asked by 25.10.2018 / 22:51
1
answer

PHP Laravel Blade {{{name or 'Default'}}} printing 1

According to the Laravel documentation {{{ $name or 'Default' }}} should behave like if(isset($name)) echo $name else echo 'Default' or echo isset($title) ? $title : 'Default' But it is returning 1 as if it were a...
asked by 13.09.2018 / 11:44
1
answer

Laravel - View [.site.Home.index] not found

I opened my localhost today to continue giving start to my project and I will get this error in all the pages that I try to access, yesterday before closing the pages was working, can anyone help me? error View [.site.Home.index] not found....
asked by 05.07.2018 / 20:59