public function scopeOpenCases($query) { return $query->where('status', '1')->orderBy('id', 'DESC')->get(); }