public function saving($model) { $tmp_model = new \App\Address(); // RULES $rules['destination_id'] = ['integer', 'min:1', 'exists:' . $tmp_model->getTable() . ',id']; $validator = Validator::make($model->toArray(), $rules); if ($validator->fails()) { $model->setErrors($validator->messages()); return false; } }