Looking to hire Laravel developers? Try LaraJobs

laravel-helper maintained by ahmetbarut

Description
Laravele attığım ve kabul edilmeyen çekme istekleri
Author
Last update
2022/10/24 12:16 (dev-master)
License
Links
Downloads
78

Comments
comments powered by Disqus

@dd_if(bool $condition, ...$args)

For Laravel

if you use laravel framework, you can use this function to dump the variable if the condition is true.

// config/app.php
'providers' => [
    ...
    AhmetBarut\LaravelHelper\LaravelHelperServiceProvider::class,
];
@dd_if(true, $var1, $var2, $var3);

if use only php, you can use this function to dump the variable if the condition is true.

dd_if(true, $var1, $var2, $var3);