Creating Custom Blade Directives
In this final article of our Blade Templating category, we'll walk through how to create custom directives, from simple examples to slightly more advanced ones involving parameters.
5 articles in this category — All Articles
In this final article of our Blade Templating category, we'll walk through how to create custom directives, from simple examples to slightly more advanced ones involving parameters.
In this article, we'll walk through the most commonly used Blade directives you'll reach for constantly while building views.
In this article, we'll cover how to create Blade components, pass data into them, and use slots to make them flexible enough to handle varying content.
In this article, we'll walk through how to build a basic layout, extend it from individual pages, and manage multiple content sections within the same layout.
In this article, we'll cover what makes Blade different from plain PHP templates, how to output data safely, and the basic building blocks you'll use in nearly every Blade file you write.