data['item_error'])) { throw ValidationException::withMessages([ 'item_id' => 'Fix the errors before submitting.', ]); } } protected function getRedirectUrl(): string { return $this->getResource()::getUrl('create'); } }