

10 Underused Laravel Blade Directives
source link: https://www.tuicool.com/articles/hit/zaAJb2y
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Laravel Blade is the template engine that’s built into the framework. It makes working with HTML a breeze. I have been working with Laravel for more than a year, but never realized some of Blade’s features. I want to share with you 10 underused blade directives that will clean up your code and save some time in the process. Let’s get going.
Check out LaravelCollections.com - an ever growing collection of great Laravel resources
@forelse
@each
@json
@verbatim
@isset & @ empty
@php
@push & @stack
@inject
@includeWhen
@hasSection
Conclusion
I hope these tips help you write better Blade views. If you have a tip do, share with us. I have linked to a few resources, which will help you take you Laravel skill to the next level.
- LaravelCollections.com
- Laravel Blade Documentation
- Scotch.io tutorial
- Custom Blade directives package
Thanks for reading, share this article with people who might be interested.
This has been Adi -Simplest Web
Recommend
-
132
Laravel Blade Directives A collection of nice Laravel Blade directives. Installation You can install the package via composer: composer require appstract/laravel-blade-directives Usage
-
43
Before I started doing research for Intelligent Data Analysis (IDA) group at FEE CTU , I saw SAT solvers as academically interesting but didn't think that they have many practical u...
-
60
The previous post in this series was a quick introduction to the world of SAT and SAT solvers, including a simple example of how we...
-
10
Modern SAT solvers: fast, neat and underused (part 1.5 of N) In part 1 of this series, we built a Sudoku solver based on tr...
-
8
The most underused browser feature 2021-08-24 08:45 The web has been plagued by cookie consent popups and banners since the General Data Protection Regulation (GDPR) has come into effect. See...
-
13
5 underused Podman features to try now Simplify how you interact with containers by incorporating pods, init containers, add...
-
4
Lesser-Known And Underused CSS Features In 2022 — Smashing MagazineLesser-Known And Underused CSS Features In 2022Quick summary ↬ CSS is constantly evolving, and so...
-
14
Frontend Focus Issue 543 « Prev
-
5
There are plenty of impressive tactics or metrics that aren’t often discussed, not necessarily because they aren't important, but because it's easy to get locked into the rhythm of simply reporting on traffic and sales. To change things up,...
-
2
TechIntel’s horrible quarter revealed an inventory glut and underused factories...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK