/**
* @param $tableNumber
*/
public static function switchTo($tableNumber)
{
$instance = new static;
$instance->setTable("table_{$tableNumber}");
return $instance->newQuery();
}
{% for key, item in test %}
{{ key}}: {{ item.CODE_CLIENT }}
{% endfor %}
$posts = Posts::where(function ($q) {
$q->where('status', 1)
->orWhere(function($user_post){
$user_post->where('status', 3)->where('public', 0);
});
})