OctoberCMS plugin that adds the d() function to Twig for recursively dumping passed variables
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
updates
LICENSE
Plugin.php
README.md

README.md

About

OctoberCMS plugin to improve debugging in Twig.

Adds the d() function to Twig to recursively dump provided variables in the same manner as Laravel's dd() function. Unlike Twig's native dump() function, d() displays all nested members of the provided variables.

Usage

Dumping a single variable

{{ d(myCollection) }}

Twig d() Collection demo

Dumping multiple variables

{{ d(var1, var2) }}

dump mulitvars

Author

inetis is a webdesign agency in Vufflens-la-Ville, Switzerland. We love coding and creating powerful apps and sites see our website.