dev-master
9999999-dev http://github.com/kotchuprik/laravel-pretty-dump
MIT
The Requires
- php >=5.3.0
by Constantin Chuprik
laravel pretty-print var-dump
Wallogit.com
2017 © Pedro Peláez
Add the laravel-pretty-dump with the following composer command:, (*1)
composer require "kotchuprik/laravel-pretty-dump"
Or add it to the composer.json file:, (*2)
"require": {
"laravel/framework": "4.1.*",
"kotchuprik/laravel-pretty-dump": "dev-master"
}
After adding the require, you must update the composer by executing composer update., (*3)
Next, add the kotchuprik\PrettyDump\ServiceProvider to the app/config/app.php providers., (*4)
To use in code:, (*5)
<?php
$array = array('first' => 42, 'second' => 'another');
PrettyDump::dump($variable)
To use as the blade extension in views:, (*6)
<div class="container">
@prettyDump($variable)
</div>
MIT
laravel pretty-print var-dump