Top "Blade" questions

Blade is the simple, yet powerful templating engine provided with Laravel.

Blade view not reflecting changes

I am developing a Laravel(5.2.29) project in Windows environment and testing it on Chrome browser. I have made some changes …

laravel blade
Laravel 4 - Blade Templating - How to properly Link to Route?

I want to create a resourceful link with Laravel. Normally I just use the {{ link_to_route('Yadayadayada.route', 'LinkName', $…

php html laravel laravel-4 blade
Laravel - Difference between @yield and @section?

From the Laravel docs, you can include 'sections' inside layouts using two methods: <html> <body> @section(…

laravel blade
How to add classes to Laravel 4 Forms

Probably, it is a simple answer but I cannot find any documentation regarding this. I have laid out a form …

css laravel laravel-4 blade
Find last iteration of foreach loop in laravel blade

In blade template i use last() method to find last iteration of foreach loop: @foreach ($colors as $k => $v) &…

php laravel laravel-5 blade laravel-blade
Laravel - Blade comments , blade rendering causing page to crash

I'm rendering a page that is primarily a form with view::make in Laravel and it is crashing, causing ERR_…

php laravel web blade
Laravel 4.2 blade: check if empty

In Laravel blade you can do: {{ $variable or 'default' }} This will check if a variable is set or not. I …

php laravel blade
Blade: escaping text and allowing new lines

I have a user-input text displayed on one of the pages. I want to allow new lines, though. How do …

php laravel escaping blade
Using Laravel Form class to add the 'disabled' attribute

Using Laravel 4's Form class, we can create a list using {{ @Form::select('colors', Colors::all()), $color }} Question: How can …

laravel laravel-4 blade
laravel blade, how to append to a section

If you look to laravel official documentation http://laravel.com/docs/4.2/templates It says that giving this layout: <!-- …

php laravel laravel-4 template-engine blade