W
W
WebDev2017-10-04 12:15:58
Laravel
WebDev, 2017-10-04 12:15:58

What is wrong with php settings?

Post::where('posts.post_type', $post_type)->where('posts.created_at', '>', 'entity_user.created_at')

Here is a request that worked on the old server, and after moving to a new one, it stopped. Also he ceased apparently to add a prefix and to the table. It helps to replace the code like this:
Post::where('posts.post_type', $post_type)->where('posts.created_at', '>',  \DB::raw('bq_entity_user.created_at'))

What could be the reason for such behavior? There is new software on the new server, maybe something is not specified somewhere? In the Laravel settings, the prefix is ​​specified.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question