/** * @param $group_id * @throws GroupNotFoundException */ public function findGroupById($group_id) { try { return Groups::find($group_id); } catch (\Illuminate\Database\Eloquent\ModelNotFoundException $e) { throw new GroupNotFoundException(trans('user-management::messages.group_not_found'), array(trans('user-management::messages.group_not_found'))); } }
/** * Reverse the migrations. * * @return void */ public function down() { \KodeInfo\UserManagement\Models\Groups::truncate(); }