itsgoingd / clockwork

Clockwork - php dev tools in your browser - server-side component
https://underground.works/clockwork
MIT License
5.69k stars 321 forks source link

Mongo laravel create() method failing only while clockwork installed #575

Closed foron23 closed 2 years ago

foron23 commented 2 years ago

Good morning, In order to set some context, currently I am developing a Laravel application which connects to a Mongodb database. The driver which I am using works, and my intention was to plug this library into the project in order to measure and profile the database performance. However, having the library installed according to the documentation, when I try to create a Model using Eloquent I find the following error: mb_strpos() expects parameter 1 to be string, array given In order to isolate the problem, I found out that after removing the package the method works as expected again.

Could It be that this library is incompatible with the database paradigm which I am using? Or is it an unexpected behaviour? Thanks in advance,

Additional information:

itsgoingd commented 2 years ago

Hey, yes indeed, we assume you are working with an SQL database when using Eloquent. I'm kinda interested at taking a look at that Mongo driver to see if there is anything we can easily do to support it, but no promises.

foron23 commented 2 years ago

I'll keep an eye on the project then, just in case the integration gets implemented. Thank you very much!