Blade

Laravel 5.5 Gets Improvements with the Default Error Views
Laravel 5.5 / May 01, 2017

Laravel 5.5 Gets Improvements with the Default Error Views

Coming in Laravel 5.5 is a new and improved design for the error pages.

Read more…
The Static Site Generator Jigsaw Launched V1.0
Laravel Applications / April 20, 2017

The Static Site Generator Jigsaw Launched V1.0

Jigsaw, a static site generator, made by Tighten just tagged and launched v1.0 that includes the addition of Collections. These allow you to work with a list of related content, like blog posts, a portfolio of your work, staff bios, and more.

Read more…
Which Laravel Helper Do You Use for Your URLs?
Laravel Tutorials / April 06, 2017

Which Laravel Helper Do You Use for Your URLs?

Jacob Bennett ran a Twitter poll to see which URL helper most developers are using for their Blade views. The route helper won out and in this article let’s look at the different styles and some of the advantages and disadvantages to each.

Read more…
PhpStorm Improves Support for Laravel Blade
Development Tools / March 23, 2017

PhpStorm Improves Support for Laravel Blade

PhpStorm just released version 2017.1 and it includes many improvements including support for Codeception, PhpUnit 6.0, and more PHP 7.x features. Beyond these, it also adds support for @includeWhen, @component and @slot directives and PHPDoc through Blade injections. Here is a screenshot showing the PhpDoc for Blade files: For the full details on this release …

Laravel Include When Directive
News / March 01, 2017

Laravel Include When Directive

A new feature in Laravel Blade is an includeWhen directive. This allows you to simplify a typical if statement into a single line. “I think it’s a cool feature as it tidies up so much boilerplate”, said James Brooks, the author of the pull request. To see this feature in use pretend you have this …

Laravel Blade @prepend Directive
Laravel 5.4 / February 11, 2017

Laravel Blade @prepend Directive

In version 5.4 Laravel added a new components and slots feature that simplifies building HTML elements into reusable areas. As an example of how this features works pretend you have a layout.blade.php file that includes this: <ul id=”sidebar”> @stack(‘sidebar’) </ul> Now when you want to insert data into this section from a sub-view you can …

In Laravel 5.4 You Can Use Markdown in Your Emails
Laravel 5.4 / December 13, 2016

In Laravel 5.4 You Can Use Markdown in Your Emails

Coming to Laravel 5.4 is a brand new system for writing your emails templates in Markdown and it comes complete with automatic inline styling, various components and slots, and Litmus tested templates.

Read more…
Laravel View Exists
Laravel Tutorials / December 07, 2016

Laravel View Exists

Learn how to use Laravel’s view exist to easily load different views based on the category slug.

Read more…
Laravel Blade Components and Slots are coming to 5.4
Laravel 5.4 / November 15, 2016

Laravel Blade Components and Slots are coming to 5.4

A new feature coming to Laravel 5.4 is the ability for you to add Components and Slots to Blade templates. This feature was inspired by Vue.js and allows you to simplify building HTML elements into reusable areas. In most applications you have a master layout and then sub views that extend it: // layouts/app.blade.php <!DOCTYPE … Continue reading Laravel Blade Components a... Read more…

Laravel Blade SVG Directive
Laravel Packages / October 13, 2016

Laravel Blade SVG Directive

Using SVG’s in your design is all the rage and for good reason. They can be resized to any size without becoming pixelated, you can reference them by id, modify them through CSS or JavaScript. One of the difficulties in using SVG files in your templates is referencing them. Currently, there are three ways this … Continue reading Laravel Blade SVG Directive... Read more…