-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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
dd
output by adding the source file/line to thedd
output.It's very common to use
dd
while developing Laravel applications and forget about the original place where thedd
was 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
dd
call on the browser will look like so:In addition, if the
app.editor
configuration is defined, the source link will be clickable: