laravel-debugbar
laravel-debugbar copied to clipboard
Debugbar queries replaced by one backslash instead of two
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 :)
Hi, feel free to make a PR to improve that