I think you have to write in DB::raw like as bellow :
$columns = array(DB::raw("min(created_at)"), DB::raw("man(created_at)"))
$this->model->selectRaw($columns);
print_r($this->model->toSql());
return $this;
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community