Here we’ll look at how we can introduce “slots” into our own custom Blade directives to capture anything between an opening and ending directive. In the process, we’ll build a simple directive to render Markdown for us in Blade.
Laravel Blade Internals