Top "Blade" questions

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

Define the selected option with the old input in Laravel / Blade

I have this code: <select required="required" class="form-control" name="title"> <option></option> @foreach ($…

laravel laravel-4 blade
Laravel 5 call a model function in a blade view

I want to build a blade view from 3 tables: "inputs_details" - fields: article_type (values: 'p' for product,'s' …

blade laravel-5
Laravel Pagination links not including other GET parameters

I am using Eloquent together with Laravel 4's Pagination class. Problem: When there are some GET parameters in the URL, …

pagination laravel laravel-4 eloquent blade
Laravel Blade passing variable with string through @include causes error

In Laravel 5.0.27 I am including a view with with a variable and the following code: @include('layouts.article', [ 'mainTitle' => "404, …

php laravel laravel-5 blade
How to comment code in a vue.js file?

I have the need to insert a comment inside a vue.js file for future references, but I don't find …

vue.js blade laravel-blade
Passing multiple parameters to controller in Laravel 5

In my application, a user has the ability to remind another user about an event invitation. To do that, I …

php laravel laravel-5 blade
Ternary in Laravel Blade

Looking for a ternary operator for blade templates @if(Auth::check()) ? yes : no @endif Can't seem to get it to …

laravel ternary-operator blade
Blade view: if statement with OR/AND condition

Is it possible in Laravel 4.0 -blade-view to do an if statment like so? @if ($var1 === '1' OR $var2 === '1…

php if-statement view laravel-4 blade
Go back URL in Laravel 5.1

How can I get the previous URL visited on the website in Laravel 5.1? In Laravel 4 I just needed to write …

php url blade laravel-5.1
How to echo a default value if value not set blade

I would like to know what would be the best way to display a default value if the given value …

laravel laravel-4 laravel-5 blade templating