Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Could this package be compatible with Laravel Telescope? #1648

Unanswered
koAndy asked this question in Ideas
Discussion options

Could this package be compatible with Laravel Telescope?

I tried install Telescope and on dashboard, when trying to read requests, in console I get "Call to a member function prepare() on null".

You must be logged in to vote

Replies: 6 comments 2 replies

Comment options

To make Telescope work with this "all" you need is an adapter for the storage driver. Telescope registers the its database driver as part of the service provider, which is where you can replace the bindings to a driver that uses this package instead of eloquent to store the records.

Not sure if anyone have written this yet though, but implementing those interfaces should be somewhat straightforward.

You must be logged in to vote
0 replies
Comment options

I am using mongodb with jenssegers/mongodb package.

exception: "Symfony\Component\Debug\Exception\FatalThrowableError"
file: "/var/www/html/broc/vendor/laravel/framework/src/Illuminate/Database/Connection.php"
line: 326
message: "Call to a member function prepare() on null"

You must be logged in to vote
2 replies
Comment options

@yuvraj993 some solution?

Comment options

@yuvraj993 i have same issue any solution ?

Comment options

you mean log the mongodb queries? or store the telescope logs in mongodb?

The first is easy you need to enable the query log:
DB::connection('mongodb')->enableQueryLog();
the second is harder. Its probably more than writing a "storage adaptor" since the package might use some raw sql queries :s

Worst case scenario you might have to fork the package & dive into the code

You must be logged in to vote
0 replies
Comment options

Bump

You must be logged in to vote
0 replies
Comment options

Has anyone been able to get this to work? It is unfortunate to not have this when switching over to mongo. It was great with mysql. I would love to see some examples of what needed to be changed to get it working. It's been really hard to find anything informative online so far.

You must be logged in to vote
0 replies
Comment options

Tracked with PHPORM-168 .

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Converted from issue

This discussion was converted from issue #1648 on October 23, 2020 10:56.

AltStyle によって変換されたページ (->オリジナル) /