mlanin / laravel-api-debugger

Easy debug for your JSON API.
http://blog.lanin.me/easy-debug-for-your-json-api/
MIT License
233 stars 54 forks source link

Model name of database query #11

Closed hiranipradeep closed 5 years ago

hiranipradeep commented 6 years ago

Thanks for making this debugger tool.

I want to display the 'model' (query running from particular model) parameter name like this:

"debug": {
        "database": {
            "total": 5,
            "items": [
                {  
                    "model": "App\User",
                    "connection": "mysql",
                    "query": "select * from `ta_users`;",
                    "time": 106.27
                },
            ]
        }
   }

Please help me with this additional parameter. Thanks

mlanin commented 5 years ago

Unfortunately it is impossible :( Laravel doesn't send model name in query event