Top "Blade" questions

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

Laravel 5: Display HTML with Blade

I have a string returned to one of my views, like this: $text = '<p><strong>…

laravel laravel-5 blade
Laravel-5 how to populate select box from database with id value and name value

I want to create a select box like the one below using illuminate\html : <select> <option value="$…

php laravel laravel-5 blade
Laravel stylesheets and javascript don't load for non-base routes

Okay--I know this is a really elementary issue, but I can't figure it out. This is a question regarding Laravel. …

php laravel blade
Displaying the Error Messages in Laravel after being Redirected from controller

How can I display the validation message in the view that is being redirected in Laravel ? Here is my function …

php laravel laravel-4 blade
How to include a sub-view in Blade templates?

I am trying to set up a site using laravel, but I'm really having trouble with basic things that the …

laravel blade templating
Lumen: get URL parameter in a Blade view

I'm trying to get a url parameter from a view file. I have this url: http://locahost:8000/example?a=10 and …

php laravel blade lumen
How to access URL segment(s) in blade in Laravel 5?

I have a url : http://localhost:8888/projects/oop/2 I want to access the first segment --> projects I've tried &…

php laravel laravel-5 blade
Switch in Laravel 5 - Blade

How can I use switch in blade templates? When I used: @switch($login_error) @case(1) `E-mail` input is empty! @break @…

php laravel switch-statement laravel-5 blade
Laravel: How do I parse this json data in view blade?

Currently this is my view {{ $leads }} And this is the output {"error":false,"member":[{"id":"1","firstName":"first","lastName":"last","phoneNumber":"0987654321","…

json laravel blade
How do I pass a variable to the layout using Laravel' Blade templating?

In Laravel 4, my controller uses a Blade layout: class PagesController extends BaseController { protected $layout = 'layouts.master'; } The master layout has …

laravel laravel-4 blade