From f3cad7cdb19b5f01600fadc49d90acc5bf83723e Mon Sep 17 00:00:00 2001 From: hossein Bagherzdegan Talkhouncheh Date: Wed, 27 Sep 2023 16:28:15 +0200 Subject: [PATCH] - add missing Dumpable Trait --- Traits/Dumpable.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Traits/Dumpable.php diff --git a/Traits/Dumpable.php b/Traits/Dumpable.php new file mode 100644 index 0000000..448b5ba --- /dev/null +++ b/Traits/Dumpable.php @@ -0,0 +1,32 @@ +dump(...$args); + + dd(); + } + + /** + * Dump the given arguments. + * + * @param mixed ...$args + * @return $this + */ + public function dump(...$args) + { + dump($this, ...$args); + + return $this; + } +}