public function scopeGetOffenders($query) { $results = Offender::all(); return $results->toArray(); }