File tree 2 files changed +23
-1
lines changed
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 25
25
"autoload" : {
26
26
"psr-4" : {
27
27
"Helldar\\ LaravelSupport\\ " : " src"
28
- }
28
+ },
29
+ "files" : [
30
+ " helpers/dumper.php"
31
+ ]
29
32
},
30
33
"suggest" : {
31
34
"symfony/thanks" : " Give thanks (in the form of a GitHub) to your fellow PHP package maintainers"
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ use Helldar \LaravelSupport \Facades \Dumper ;
4
+
5
+ if (! function_exists ('dd_sql ' )) {
6
+ /**
7
+ * Dump the passed variables and end the script.
8
+ *
9
+ * @param \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $query
10
+ * @param bool $is_short
11
+ * @param bool $is_return
12
+ *
13
+ * @return array|string
14
+ */
15
+ function dd_sql ($ query , bool $ is_short = false , bool $ is_return = false )
16
+ {
17
+ return Dumper::ddSql ($ query , $ is_short , $ is_return );
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments