public function scopeDashboardUpdate($query) { return $query->where('case_type', 'dashboard_update'); }