-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support editor link on QueryCollector/ExceptionsCollector #1426
Conversation
9a16a26
to
2d9b7b8
Compare
177ce15
to
618c9ae
Compare
hi @barryvdh, ready for review, Now, |
dccf539
to
b8e39a9
Compare
719c3f9
to
0327acc
Compare
Maybe this is a silly question, but am I supposed to configure something before this works? |
Hi, on config, laravel-debugbar/src/LaravelDebugbar.php Lines 1225 to 1230 in 04b2868
|
The path in the view is correct, but the link should be the real path, right? |
Or did I merge it incorrectly? (Had some conflicts) |
config/debugbar.php ///
'local_sites_path' => env('DEBUGBAR_LOCAL_SITES_PATH', ''),
/// .env DEBUGBAR_LOCAL_SITES_PATH=C:\laravel\ssw @barryvdh |
But wouldn't it make more sense that value is the base_path() by default already? |
yes, it would config/debugbar.php 'local_sites_path' => env('DEBUGBAR_LOCAL_SITES_PATH', base_path()), but that code was already like that, so I didn't modify it |
This PR allow us to easy open files on editor from queries widget
I also avoid duplicating the same code again, now it uses build-in methods
laravel-debugbar/src/DataCollector/RouteCollector.php
Lines 33 to 50 in 23f6174
laravel-debugbar/src/DataCollector/ViewCollector.php
Lines 22 to 39 in 23f6174
Also
getEditorHref
was removed, now it uses build-in methodsRelated #1258, #1359,