3 years ago

Builder::select(['id', 'NOW()']) escape and not escape

Posted 3 years ago by miso

Hi, I would like to select some attributes and current timestamp. But the function NOW() is escaped. Is there any way how to escape some data and some not?

DB::table('blocks')->select(['id', 'NOW() as timestamp'])->join(...

Thank you

Please sign in or create an account to participate in this conversation.