I'm trying to debug some SQL queries that I'm doing in a testing suite. Using the following debugging code:
\Log::debug(User::first()->jobs()->toSql());
The SQL that prints out is:
`select * from `jobs` where `jobs`.`deleted_at` is null and `jobs`.`managed_by_id` = ? and `jobs`.`managed_by_id` is not null`
What is that question mark doing there? I've tested the query, and it works as expected. Is it because i'm selecting that first() user that this is happening?