V
V
Vanya Huk2017-01-27 02:43:26
ORM
Vanya Huk, 2017-01-27 02:43:26

How to get sql query text in laravel?

how to get final query in db?
I have a built-in query in which there is where and it turns out what is in the picture, 0737a69f485b4391b419d7979e8bfbe6.png
but I need the value itself instead of a question mark

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrzej Wielski, 2017-01-27
@wielski

I have a built-in query in which there is where and it turns out what is in the picture

You get an error if you look closely.
If you don't understand English - translate.google.ru to help
Unknown column 'product_id' in 'where clause' - Unknown column "product_id" in the
where clause You simply do not have this column either in the filter_products table or in the category_products table .
If you really want to view request logs - https://github.com/barryvdh/laravel-debugbar to help

A
Alexander Taratin, 2017-01-27
@Taraflex

mysql querylog

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question