Plugin Dev Helpers for Craft CMS
- Move the
craftplugindevhelpers
directory into yourcraft/plugins
directory. - Go to Settings > Plugins from your Craft control panel and enable the
craftPluginDevHelpers
plugin
Die and Dump. Via Taylor Otwell, the man, the mystery, the legend.
Die and Dump, using Craft::dump()
Wrap getenv()
with Laravel's env()
helper, which converts boolean strings to real booleans and takes an optional second parameter that is the default. E.g.
$shouldDoThing = env('SHOULD_DO_THING', false);