[9.x] Adds source file to dd function output 💅🏻#44211
Conversation
dd 🧙🏻♀️dd function output 💅🏻
|
This is awesome! |
|
FYI, Symfony natively supports this since symfony/symfony#31446 There are a few differences of course: we decided to go with a You might want to have look at the code there and maybe reuse some of the infrastructure. |
|
This looks great! Just a couple of questions:
|
|
How to enable this feature? I've update to Laravel 9.31.0 but I don't see anything behind my dd. Thanks. |
|
@Pinnokkio it isn't tagged yet but I would guess it comes out in next Tuesday's release. |
|
Have Laravel 9.33.0 and still this doesn't work for some reason |
|
Can you share your "composer.lock" file? |
|
I've just used that |
|
I deleted vendor folder and run |
|
Same for me, still not working in 9.33. |
|
@decadence @Pinnokkio What operating system are you using? |
|
Windows 10 and Linux, but I tried only on Windows at this time |
|
I have the same problem on Window 10 when update from Laravel 9.25.1 to 9.33.0 |
Windows 10, 21H2 |
|
I'm not seeing any difference either on Windows 11, 22H2. |
@nunomaduro Works on Linux with the same project. Seems like some problem on Windows. |
|
Fixed: #44451. |
|
Great 💪 |
Maybe because of #44331? |
|
@nunomaduro can't open array? |
|
@datlechin How deeply nested is this model? After some levels it's not possible to disclose them anymore. |
|
@dennisprudlo it’s Collection Post::all(); |
|
@nunomaduro |




This pull request improves the
ddoutput by adding the source file/line to theddoutput.It's very common to use
ddwhile developing Laravel applications and forget about the original place where theddwas left. So, this pull request solves that, by adding a very minimal gray text with the source file/line:This improvement also works on the HTTP layer, and any
ddcall on the browser will look like so:In addition, if the
app.editorconfiguration is defined, the source link will be clickable: