Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (18 sloc) 790 Bytes

Dumper plugin for Craft CMS 3.x

Bringing larapack/dd to Craft 3

Requirements

This plugin requires Craft CMS 3.0.0-beta.29 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require studioespresso/craft-dumper
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Dumper.

Using Dumper

When you install the plugin, you'll be able to use larapack/dd in your Twig templates like this:

{{ d(entry) }}

Or you can "dump and die"

{{ dd(entry) }}

Works on strings, arrays, object, etc.

Brought to you by Studio Espresso
You can’t perform that action at this time.