Questions tagged as 'laravel-blade'

2
answers

Risk in allowing developers to upload .blade files

I'm developing a blog platform where users submit their template and Laravel uses that template to build the blog. The user / developer will only tell you where the values will be, for example: <h2>{{$blog->title}}</h2> Can I...
asked by 11.11.2014 / 19:10
2
answers

Problem with @extends in view in Laravel.

I'm having a problem with @extends('layouts.template') . Only my view that is like index that does not show the page, instead shows me only this @extends('layouts.template') on the page. What could it be? obs: the route is normal...
asked by 19.12.2013 / 11:44
2
answers

What's going wrong? BD + Laravel

I'm having a blade form picking up the values from the database. In it I have a date field not required to be filled. When you register an empty date, the results screen displays the date "01/01/1970" . How do I change this behavior...
asked by 13.01.2017 / 17:33
1
answer

htmlspecialchars () expects parameter 1 to be string, object given

I'm trying to make a select button on the blade with @foreach to get the list of all MySql databases. Only @foreach works, I can get the values, but I can not put the bases inside select . It is giving error:    htm...
asked by 26.01.2017 / 14:07
2
answers

Displaying authenticated user data in view

I have a problem that I think is very simple ... I need to show the username logged in my views ... How do I do this? this is one of the views @extends('layouts.template') @section('body') <h3>List_Lists</h3> <p> <...
asked by 18.12.2013 / 22:09
1
answer

Field code in the value attribute of the option

I have a CategoriaCNH table with the following fields CodCategoriaCNH and Descricao . I have this code snippet html : <select name="categoriaCnh"> <option value="" disabled selected>CNH</option&g...
asked by 24.05.2016 / 03:53
3
answers

Blade default value laravel 5.2

I have the following code <strong class="primary-font">Complemento</strong> <p>{{ $produto->complemento or 'Esta produto não tem complemento' }}</p> I need the system to display the text 'This product has no compl...
asked by 02.08.2016 / 21:15
2
answers

Incompatibility between Blade and Angular JS in Laravel 5

I'm having trouble using AngularJS along with Laravel's Blade. After searching this site myself, I discovered that to resolve the conflict with Laravel the most recent method is using @{{}} in variable calls. The page is loaded, a...
asked by 10.01.2017 / 19:57
2
answers

Blade laravel and the performance

In Laravel , we usually use Blade to be able to write a view . Example: @unless($variable) <p>Nenhum dado encontrado</p> @else @foreach($variable as $v) <p>{{ $v }} </p> @endforeach @end...
asked by 01.10.2015 / 14:19
1
answer

What is the difference between @yield and @include in Laravel?

I'm learning Laravel 5.3 , @yield and @include seem to me much the same thing, the only difference I know is that @include injects the variables of parent > and can also include other variables. What is the difference between...
asked by 29.01.2017 / 00:47