laravel-debugbar icon indicating copy to clipboard operation
laravel-debugbar copied to clipboard

Debugbar queries replaced by one backslash instead of two

Open hichxm opened this issue 2 years ago • 1 comments

Hello debug bar community,

This is my request generated by laravel-debugbar, I got 'taggables'.'taggable_type' = 'App\Models\Organization' instead of App\\Models\\Organization.

App\Models\Organization is not working on phpMyAdmin, Adminer and PHPStorm database console.

SELECT
    `organizations`.*,
    `taggables`.`tag_id` AS `pivot_tag_id`,
    `taggables`.`taggable_id` AS `pivot_taggable_id`,
    `taggables`.`taggable_type` AS `pivot_taggable_type`
FROM
    `organizations`
INNER JOIN `taggables` ON `organizations`.`id` = `taggables`.`taggable_id`
WHERE
    `taggables`.`tag_id` IN(12, 13) AND `taggables`.`taggable_type` = 'App\Models\Organization' AND `organizations`.`deleted_at` IS NULL
ORDER BY
    `name` ASC

Maybe forgot double backslash?

Sorry, bad English :)

hichxm avatar Oct 16 '23 09:10 hichxm

Hi, feel free to make a PR to improve that

parallels999 avatar Oct 16 '23 15:10 parallels999