Skip to content
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

Debugbar queries replaced by one backslash instead of two #1482

Open
hichxm opened this issue Oct 16, 2023 · 1 comment · May be fixed by #1488
Open

Debugbar queries replaced by one backslash instead of two #1482

hichxm opened this issue Oct 16, 2023 · 1 comment · May be fixed by #1488

Comments

@hichxm
Copy link

hichxm commented Oct 16, 2023

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 :)

@parallels999
Copy link
Contributor

Hi, feel free to make a PR to improve that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants