function get_task($company_id) { $map = ['company_id' => $company_id, 'is_finish' => 0]; return App\Task::where($map)->count(); }