tjventurini / ddi
Helper to dd with more comfort.
Installs: 2 931
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 0
Type:package
Requires
- illuminate/support: ^6.0|^7.0|^8.0
README
This package provides a helper method, ddi()
. This helper works just like the usual dd()
helper that you know and
love but it will add an additional method signature to the dump. That way you always know where the dd is taking place.
Installation
To install this package you can just require it via composer.
composer require tjventurini/ddi
Usage and Example
namespace Acme\Foo; class Bar { public function baz() { // dump and die ddi('example'); // dump and continue dumpi('example'); } }
This will add the string Acme\Foo\Bar::baz
as first variable to your dd()
output. The dumpi()
helper method
works the same way, but for the dump()
helper method.
For more information about the dd()
and dump()
method take a look at the documentation.