Skip to content

Debugbar queries replaced by one backslash instead of two #1482

Open
@hichxm

Description

@hichxm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions